add test cases for parsing multiplication involving negative numbers
authorSven Verdoolaege <sven@cerebras.net>
Wed, 3 Aug 2022 12:19:44 +0000 (3 14:19 +0200)
committerSven Verdoolaege <sven@cerebras.net>
Fri, 23 Dec 2022 11:36:43 +0000 (23 12:36 +0100)
These ensure that the next commit does not break this parsing.

Signed-off-by: Sven Verdoolaege <sven@cerebras.net>
isl_test.c

index a60868d..9e0b901 100644 (file)
@@ -444,6 +444,10 @@ struct {
          "{ [x, floor(x/4)] }" },
        { "{ [10//4] }",
          "{ [2] }" },
+       { "{ [2*-2] }",
+         "{ [-4] }" },
+       { "{ [i,i*-2] }",
+         "{ [i,-2i] }" },
        { "[a, b, c, d] -> { [max(a,b,c,d)] }",
          "[a, b, c, d] -> { [a] : b < a and c < a and d < a; "
                "[b] : b >= a and c < b and d < b; "