summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2007-11-07 07:40:21 -0700
committerEric Blake <ebb9@byu.net>2007-11-07 07:40:21 -0700
commit143b597a5a4d66362c29709cce78b7bd10c64817 (patch)
tree160f97a7bf4c40b01452862f963070bf7e56acfe
parent892295b5672cc38a55b1a727fc11297d145cfe18 (diff)
downloadm4-143b597a5a4d66362c29709cce78b7bd10c64817.tar.gz
More corner-case testing.
* doc/m4.texinfo (Pseudo Arguments): Test more corner cases. Signed-off-by: Eric Blake <ebb9@byu.net>
-rw-r--r--ChangeLog4
-rw-r--r--doc/m4.texinfo9
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bfd5de97..86d8ad43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-07 Eric Blake <ebb9@byu.net>
+
+ * doc/m4.texinfo (Pseudo Arguments): Test more corner cases.
+
2007-11-05 Eric Blake <ebb9@byu.net>
Use assert, rather than INTERNAL ERROR.
diff --git a/doc/m4.texinfo b/doc/m4.texinfo
index 9a1816b6..f028e3d6 100644
--- a/doc/m4.texinfo
+++ b/doc/m4.texinfo
@@ -1943,10 +1943,19 @@ foo)
@example
define(`echo', `$@@')dnl
+echo(echo(`01234567890123456789', `01234567890123456789')
+echo(`98765432109876543210', `98765432109876543210'))
+@result{}01234567890123456789,01234567890123456789
+@result{}98765432109876543210,98765432109876543210
len((echo(`01234567890123456789',
`01234567890123456789')echo(`98765432109876543210',
`98765432109876543210')))
@result{}84
+indir(`echo', indir(`echo', `01234567890123456789',
+ `01234567890123456789')
+indir(`echo', `98765432109876543210', `98765432109876543210'))
+@result{}01234567890123456789,01234567890123456789
+@result{}98765432109876543210,98765432109876543210
define(`argn', `$#')dnl
define(`echo1', `-$@@-')define(`echo2', `,$@@,')dnl
echo1(`1', `2', `3') argn(echo1(`1', `2', `3'))