summaryrefslogtreecommitdiff
path: root/tests/arith.right
blob: c94da8b3f0844361d2d36c20f9e58711e686c681 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
163
166
4
16
8
2
4
2
2
1
0
0
0
1
1
2
-3
-2
1
0
2
131072
29
33
49
1
1
0
0
1
1
1
2
3
1
58
2
60
1
256
16
62
4
29
5
-4
4
1
32
32
1
1
32
20
1,i+=2
30
1,j+=2
20
1,i+=2
30
1,j+=2
./arith.tests: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2")
20
6
6,5,3
263
255
255
127
36
40
10
10
10
10
10
10
36
36
62
63
./arith.tests: 3425#56: illegal arithmetic base (error token is "3425#56")
0
./arith.tests: 7 = 43 : attempted assignment to non-variable (error token is "= 43 ")
./arith.tests: 2#44: value too great for base (error token is "2#44")
./arith.tests: 44 / 0 : division by 0 (error token is " ")
./arith.tests: let: jv += $iv: syntax error: operand expected (error token is "$iv")
./arith.tests: jv += $iv : syntax error: operand expected (error token is "$iv ")
./arith.tests: let: rv = 7 + (43 * 6: missing `)' (error token is "6")
./arith.tests: 0#4: bad number (error token is "0#4")
./arith.tests: 2#110#11: bad number (error token is "2#110#11")
abc
def
ghi
ok
6
1
0
./arith.tests: 4 + : syntax error: operand expected (error token is " ")
16
./arith.tests: 4 ? : 3 + 5 : expression expected (error token is ": 3 + 5 ")
./arith.tests: 1 ? 20 : `:' expected for conditional expression (error token is " ")
./arith.tests: 4 ? 20 : : expression expected (error token is " ")
9
./arith.tests: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ")
9
./arith.tests: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ")
9
0
9
0
9
1
9
7
7
4
32767
32768
131072
2147483647
1