Skip to content

Commit 34b1904

Browse files
committed
COMMON: add tests
1 parent fe20a52 commit 34b1904

File tree

11 files changed

+100
-5
lines changed

11 files changed

+100
-5
lines changed

samples/distro-examples/tests/optchk.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
OPTION PREDEF QUITE
2-
OPTION PREDEF COMMAND hello world
1+
OPTION PREDEF QUIET
2+
OPTION PREDEF COMMAND "hello world"
33
OPTION BASE 1
44

55
DIM a(3)

samples/distro-examples/tests/output/letbug.out

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1 3
2+
1 4
3+
1 1
4+
0 3
5+
COMMAND$="hello world"
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Proc1: no parameters
2+
Proc2=String test
3+
Proc2=0.5
4+
Proc3=3
5+
Proc4=4
6+
sub-proc5=4
7+
sub-proc6=4
8+
Proc5 - Array=0
9+
Proc5 - Array=1
10+
Proc5 - Array=2
11+
Proc5 - Array=3
12+
Proc5 - Array=4
13+
proc5: ok
14+
proc6: ok
15+
proc6: ok
16+
R:2
17+
R:3
18+
R:4
19+
R:5
20+
R:6
21+
R:7
22+
R:8
23+
R:9
24+
R:10
25+
REXIT:10
26+
REXIT:9
27+
REXIT:8
28+
REXIT:7
29+
REXIT:6
30+
REXIT:5
31+
REXIT:4
32+
REXIT:3
33+
REXIT:2
34+
f(x)=256
35+
23
36+
16
37+
15
38+
14
39+
13
40+
12
41+
11
42+
10
43+
9
44+
8
45+
7
46+
6
47+
5
48+
4
49+
3
50+
2
51+
1
52+
0
53+
0
54+
1
55+
2
56+
3
57+
4
58+
5
59+
6
60+
7
61+
8
62+
9
63+
10
64+
11
65+
12
66+
13
67+
14
68+
15
69+
16
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
0.3333
2+
1
3+
HELLO
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
1bcdefg
2+
1b4567
3+
1b7
4+
1
5+
1bc234567
6+
1bcI4567
7+
8+
1
9+
4567
10+
1
11+
4567
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2
2+
4
3+
8
4+
16
5+
32
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
String functions

samples/distro-examples/tests/proc.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fi
128128
end
129129

130130
func fillarray
131-
local v(),i
131+
local v,i
132132

133133
dim v(16)
134134

samples/distro-examples/tests/strings.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
' No way to test these except print them!
1010
? "String functions"
11-
? date$,time$
11+
rem ? date$,time$
1212

1313
' Comparisons
1414
if "abc" != "abc" then:? "!=":fi

0 commit comments

Comments
 (0)