summaryrefslogtreecommitdiff
path: root/apps/interpreters/bas/test/test26
blob: f7b85687abd4288b9944a7b108552b9947f8479f (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: 'MAT READ... '

cat >test.bas <<'eof'
dim a(3,3)
data 5,5,5,8,8,8,3,3
mat read a(2,3)
mat print a
eof

cat >test.ref <<'eof'
 5             5             5            
 8             8             8            
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