diff options
Diffstat (limited to 'apps/interpreters/bas/test/test11')
-rw-r--r-- | apps/interpreters/bas/test/test11 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/apps/interpreters/bas/test/test11 b/apps/interpreters/bas/test/test11 new file mode 100644 index 000000000..88801c730 --- /dev/null +++ b/apps/interpreters/bas/test/test11 @@ -0,0 +1,30 @@ +#!/bin/sh + +echo -n $0: 'OPEN and LINE INPUT... ' + +cat >test.bas <<'eof' +10 open "i",1,"test.bas" +20 while not eof(1) +30 line input #1,a$ +40 print a$ +50 wend +eof + +cat >test.ref <<eof +10 open "i",1,"test.bas" +20 while not eof(1) +30 line input #1,a$ +40 print a$ +50 wend +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 |