summaryrefslogtreecommitdiff
path: root/apps/interpreters/bas/test/test30
blob: 0d7b29a26a286291299e0d4abc19c4ea9fdf6c11 (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: 'Type mismatch check... '

cat >test.bas <<'eof'
print 1+"a"
eof

cat >test.ref <<'eof'
Error: Invalid binary operand at: end of program
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