summaryrefslogtreecommitdiff
path: root/apps/examples/bas/tests/test13.bas
blob: c4e3e3d2b6ba308c80a1ba0837e74dff76676288 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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