diff options
Diffstat (limited to 'apps/examples/bas/tests/test13.bas')
-rw-r--r-- | apps/examples/bas/tests/test13.bas | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/apps/examples/bas/tests/test13.bas b/apps/examples/bas/tests/test13.bas new file mode 100644 index 000000000..c4e3e3d2b --- /dev/null +++ b/apps/examples/bas/tests/test13.bas @@ -0,0 +1,26 @@ +#!/bin/sh + +echo -n $0: 'Unnumbered lines... ' + +cat >test.bas <<'eof' +print "a" +goto 20 +print "b" +20 print "c" +eof + +cat >test.ref <<eof +a +c +eof + +sh ./test/runbas test.bas >test.data + +if cmp test.ref test.data +then + rm -f test.* + echo passed +else + echo failed + exit 1 +fi |