chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yet further macros.c testing
[disorder]
/
lib
/
t-macros.c
diff --git
a/lib/t-macros.c
b/lib/t-macros.c
index 479d2fbac8ba1e8fb0d87e41398ff53b1db011d6..cff502742718e8a98280579cdc5422257f5096dd 100644
(file)
--- 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}@}@");
/* ...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);
}
TEST(macros);