summaryrefslogtreecommitdiff
path: root/apps/interpreters/bas/test/test40
blob: d2c4eb0fe33437e6c4c2a6fb941badf21c5f7043 (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: 'IMAGE... '

cat >test.bas <<'eof'
   d=3.1
   print using "#.#";d
   print using 10;d
10 image #.##
eof

cat >test.ref <<'eof'
3.1
3.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