summaryrefslogtreecommitdiff
path: root/apps/examples/bas/tests/test48.bas
blob: fe2a9e870d701439788f11884aa067c7ecbbb0b3 (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
#!/bin/sh

echo -n $0: 'Multi assignment... '

cat >test.bas <<'eof'
a,b = 10
print a,b
dim c(10)
a,c(a) = 2
print a,c(2),c(10)
a$,b$="test"
print a$,b$
eof

cat >test.ref <<'eof'
 10            10 
 2             0             2 
test          test
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