From: Richard Kettlewell Date: Sat, 3 May 2008 20:01:31 +0000 (+0100) Subject: Yet further macros.c testing X-Git-Tag: 4.0~76^2~58 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/49472b7d2f5a17161612ce992851732b197dda35 Yet further macros.c testing --- diff --git a/lib/t-macros.c b/lib/t-macros.c index 479d2fb..cff5027 100644 --- a/lib/t-macros.c +++ b/lib/t-macros.c @@ -162,7 +162,11 @@ static void test_macros(void) { /* ...and with omitted trailing @ */ m = mx_parse("macro11", 1, "@macro{@macro2{arg1}{arg2}}", NULL); check_string(mx_dump(m), "@macro{@macro2{arg1}{arg2}@}@"); - + + /* Similarly but with more whitespace; NB that the whitespace is + * preserved. */ + m = mx_parse("macro12", 1, "@macro {@macro2 {arg1} {arg2} }\n", NULL); + check_string(mx_dump(m), "@macro{@macro2{arg1}{arg2}@ }@\n"); } TEST(macros);