summaryrefslogtreecommitdiff
path: root/apps/interpreters/bas/test/test44
blob: 25b1ec3de853ecf49fbb05da11a236e299b38f1d (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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

echo -n $0: 'DELETE... '

cat >test.bas <<eof
10 print 10
20 print 20
30 print 30
40 print 40
50 print 50
60 print 60
70 print 70
eof

cat >test.input <<eof
load "test.bas"
delete -20
delete 60-
delete 30-40
delete 15
list
eof

cat >test.ref <<eof
Error: No such line at: 15
50 print 50
eof

sh ./test/runbas <test.input >test.data

if cmp test.ref test.data
then
  rm -f test.*
  echo passed
else
  echo failed
  exit 1
fi