From b441dc9f6e4fafec0ddf4b08a25581e22c08ede0 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 11 Nov 2023 18:39:05 +0100 Subject: [PATCH] Updated macro expansion test --- src/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test.c b/src/test.c index 968e0c5..ce86b55 100644 --- a/src/test.c +++ b/src/test.c @@ -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"); -- 2.30.2