diff --git a/tests/when_merge.node b/tests/when_merge.node index c93cde0..0ed572f 100644 --- a/tests/when_merge.node +++ b/tests/when_merge.node @@ -1,14 +1,13 @@ -node test (i: int) returns (o: int); -var x, y: int; +node test (i: real) returns (o: real); +var x, y: real; let - x = (1 / i) when (i <> 0); - y = 0 when (not (i <> 0)); - o = merge (i <> 0) x y; + x = (1.0 / i) when (i <> 0.0); + y = 0.0 when (not (i <> 0.0)); + o = merge (i <> 0.0) x y; tel -node main (i: int) returns (o: int); -var garbage: int; +node main (i: real) returns (o: real); let - garbage = test(0); - o = test(1); + -- The idea is to pass `0.0` as the input to acknowledge that the division by zero isn't computed. + o = test(i); tel