chiark / gitweb /
Yet further macros.c testing
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 3 May 2008 20:01:31 +0000 (21:01 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 3 May 2008 20:01:31 +0000 (21:01 +0100)
lib/t-macros.c

index 479d2fbac8ba1e8fb0d87e41398ff53b1db011d6..cff502742718e8a98280579cdc5422257f5096dd 100644 (file)
@@ -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);