Updated macro expansion test
authorLukas Krickl <lukas@krickl.dev>
Sat, 11 Nov 2023 17:39:05 +0000 (18:39 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sat, 11 Nov 2023 17:39:05 +0000 (18:39 +0100)
src/test.c

index 968e0c50fa5560c3a24be8fcdba43989f6f851d1..ce86b55955f72b78b50078d96f1bf11480dc6c6c 100644 (file)
@@ -107,9 +107,9 @@ void test_preproc(void) {
                  "#define test 123\ntest\n#undefine test\ntest");
 
   // macro
-  assert_preproc("  line p1 1 label01\n  line p2 2\n  line p3 3 p1, p2, p3\n",
+  assert_preproc("  line p1 1 label01,2\n  line p2 2\n  line p3 3 p1, p2, p3\n",
                  0,
-                 "#macro test\n  line $1 1 label$$$$\n  line $2 2\n  line $3 3 "
+                 "#macro test\n  line $1 1 label$$$$,$$\n  line $2 2\n  line $3 3 "
                  "$0\n#endmacro\ntest p1, p2, p3");
   assert_preproc("test macro with no args\n", 0,
                  "#macro test\ntest macro with no args\n#endmacro\ntest");