From 49472b7d2f5a17161612ce992851732b197dda35 Mon Sep 17 00:00:00 2001 Message-Id: <49472b7d2f5a17161612ce992851732b197dda35.1715045089.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 3 May 2008 21:01:31 +0100 Subject: [PATCH] Yet further macros.c testing Organization: Straylight/Edgeware From: Richard Kettlewell --- lib/t-macros.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- [mdw]