chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
774eb34
)
Yet further macros.c testing
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 3 May 2008 20:01:31 +0000
(21:01 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 3 May 2008 20:01:31 +0000
(21:01 +0100)
lib/t-macros.c
patch
|
blob
|
blame
|
history
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}@}@");
-
+
+ /* 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);