diff options
Diffstat (limited to 'tests/gentest/divnum.1.test')
-rwxr-xr-x | tests/gentest/divnum.1.test | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/gentest/divnum.1.test b/tests/gentest/divnum.1.test new file mode 100755 index 00000000..b1866d7b --- /dev/null +++ b/tests/gentest/divnum.1.test @@ -0,0 +1,29 @@ +#!/bin/sh + +# gentest/divnum.1.test is part of the GNU m4 testsuite +# generated from example in ../doc/m4.texinfo line 2707 + +. ${srcdir}/defs + +cat <<\EOF >in +Initial divnum +divert(1) +Diversion one: divnum +divert(2) +Diversion two: divnum +divert +EOF + +cat <<\EOF >ok +Initial 0 + + +Diversion one: 1 + +Diversion two: 2 +EOF + +$M4 -d in >out + +$CMP -s out ok + |