summaryrefslogtreecommitdiff
path: root/apps/examples/bas/tests/test51.bas
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/bas/tests/test51.bas')
-rw-r--r--apps/examples/bas/tests/test51.bas23
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/examples/bas/tests/test51.bas b/apps/examples/bas/tests/test51.bas
new file mode 100644
index 000000000..9341dd09b
--- /dev/null
+++ b/apps/examples/bas/tests/test51.bas
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+echo -n $0: 'Print items... '
+
+cat >test.bas <<'eof'
+PRINT "Line 1";TAB(78);1.23456789
+eof
+
+cat >test.ref <<'eof'
+Line 1
+ 1.234568
+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