summaryrefslogtreecommitdiff
path: root/apps/examples/bas/tests/test46.bas
blob: 4537f3e56d748102144b60de5934e3cc003e1d5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

echo -n $0: 'END used without program... '

cat >test.bas <<'eof'
for i=1 to 10:print i;:next i:end
eof

cat >test.ref <<'eof'
 1  2  3  4  5  6  7  8  9  10 
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