diff --git a/tests/example1_macro.mod b/tests/example1_macro.mod index 460c98603364abe40a784562d7e61122874a34f0..45ad345c4cd2f9642edfee95ea224a3dc26b60c4 100644 --- a/tests/example1_macro.mod +++ b/tests/example1_macro.mod @@ -40,7 +40,15 @@ phi = 0.1; @#define w = w + [ elt ] @#endfor @#if w != [ 1, "a", 1, 2:3] -@#error "For loop problem" +@#error "For loop problem 1" +@#endif + +@#define w = [ ] +@#for (i,j) in [(1,2),(1,3),(1,4)] +@#define w = w + [i, j] +@#endfor +@#if w != [ 1, 2, 1, 3, 1, 4] +@#error "For loop problem 2" @#endif @#define s = "abcde"