]>
Commit | Line | Data |
---|---|---|
ccc6cda3 JA |
1 | 163 |
2 | 166 | |
3 | 4 | |
4 | 16 | |
5 | 8 | |
6 | 2 | |
7 | 4 | |
8 | 2 | |
9 | 2 | |
10 | 1 | |
11 | 0 | |
12 | 0 | |
13 | 0 | |
14 | 1 | |
15 | 1 | |
16 | 2 | |
17 | -3 | |
18 | -2 | |
19 | 1 | |
20 | 0 | |
21 | 2 | |
22 | 131072 | |
23 | 29 | |
24 | 33 | |
25 | 49 | |
26 | 1 | |
27 | 1 | |
28 | 0 | |
29 | 0 | |
30 | 1 | |
31 | 1 | |
32 | 1 | |
33 | 2 | |
34 | 3 | |
35 | 1 | |
36 | 58 | |
37 | 2 | |
38 | 60 | |
39 | 1 | |
40 | 256 | |
41 | 16 | |
42 | 62 | |
43 | 4 | |
44 | 29 | |
45 | 5 | |
46 | -4 | |
47 | 4 | |
48 | 1 | |
49 | 32 | |
50 | 32 | |
51 | 1 | |
52 | 1 | |
53 | 32 | |
3185942a | 54 | 4 |
ccc6cda3 JA |
55 | 20 |
56 | 1,i+=2 | |
57 | 30 | |
58 | 1,j+=2 | |
59 | 20 | |
60 | 1,i+=2 | |
61 | 30 | |
62 | 1,j+=2 | |
3185942a | 63 | ./arith.tests: line 114: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2") |
ccc6cda3 JA |
64 | 20 |
65 | 6 | |
66 | 6,5,3 | |
67 | 263 | |
68 | 255 | |
69 | 255 | |
70 | 127 | |
71 | 36 | |
72 | 40 | |
73 | 10 | |
74 | 10 | |
75 | 10 | |
76 | 10 | |
77 | 10 | |
78 | 10 | |
79 | 36 | |
80 | 36 | |
81 | 62 | |
82 | 63 | |
3185942a | 83 | ./arith.tests: line 149: 3425#56: invalid arithmetic base (error token is "3425#56") |
ccc6cda3 | 84 | 0 |
3185942a JA |
85 | ./arith.tests: line 155: 7 = 43 : attempted assignment to non-variable (error token is "= 43 ") |
86 | ./arith.tests: line 156: 2#44: value too great for base (error token is "2#44") | |
87 | ./arith.tests: line 157: 44 / 0 : division by 0 (error token is "0 ") | |
88 | ./arith.tests: line 158: let: jv += $iv: syntax error: operand expected (error token is "$iv") | |
89 | ./arith.tests: line 159: jv += $iv : syntax error: operand expected (error token is "$iv ") | |
90 | ./arith.tests: line 160: let: rv = 7 + (43 * 6: missing `)' (error token is "6") | |
91 | ./arith.tests: line 164: 0#4: invalid number (error token is "0#4") | |
92 | ./arith.tests: line 165: 2#110#11: invalid number (error token is "2#110#11") | |
d166f048 JA |
93 | abc |
94 | def | |
95 | ghi | |
96 | ok | |
97 | 6 | |
98 | 1 | |
99 | 0 | |
3185942a | 100 | ./arith.tests: line 183: 4 + : syntax error: operand expected (error token is "+ ") |
d166f048 | 101 | 16 |
3185942a JA |
102 | ./arith.tests: line 188: 4 ? : 3 + 5 : expression expected (error token is ": 3 + 5 ") |
103 | ./arith.tests: line 189: 1 ? 20 : `:' expected for conditional expression (error token is "20 ") | |
104 | ./arith.tests: line 190: 4 ? 20 : : expression expected (error token is ": ") | |
d166f048 | 105 | 9 |
3185942a | 106 | ./arith.tests: line 196: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ") |
d166f048 | 107 | 9 |
3185942a | 108 | ./arith.tests: line 199: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ") |
d166f048 JA |
109 | 9 |
110 | 0 | |
111 | 9 | |
112 | 0 | |
113 | 9 | |
114 | 1 | |
115 | 9 | |
116 | 7 | |
117 | 7 | |
118 | 4 | |
cce855bc JA |
119 | 32767 |
120 | 32768 | |
121 | 131072 | |
122 | 2147483647 | |
123 | 1 | |
bb70624e JA |
124 | 4 |
125 | 4 | |
126 | 5 | |
127 | 5 | |
128 | 4 | |
129 | 3 | |
130 | 3 | |
131 | 4 | |
132 | 4 | |
133 | 7 | |
3185942a JA |
134 | ./arith.tests: line 247: 7-- : syntax error: operand expected (error token is "- ") |
135 | ./arith.tests: line 249: --x=7 : attempted assignment to non-variable (error token is "=7 ") | |
136 | ./arith.tests: line 250: ++x=7 : attempted assignment to non-variable (error token is "=7 ") | |
137 | ./arith.tests: line 252: x++=7 : attempted assignment to non-variable (error token is "=7 ") | |
138 | ./arith.tests: line 253: x--=7 : attempted assignment to non-variable (error token is "=7 ") | |
bb70624e JA |
139 | 4 |
140 | 7 | |
141 | -7 | |
142 | 7 | |
143 | 7 | |
3185942a JA |
144 | ./arith1.sub: line 2: 4-- : syntax error: operand expected (error token is "- ") |
145 | ./arith1.sub: line 3: 4++ : syntax error: operand expected (error token is "+ ") | |
146 | ./arith1.sub: line 4: 4 -- : syntax error: operand expected (error token is "- ") | |
147 | ./arith1.sub: line 5: 4 ++ : syntax error: operand expected (error token is "+ ") | |
b80f6443 JA |
148 | 1 |
149 | 2 | |
150 | 1 | |
151 | 2 | |
152 | 6 | |
153 | 3 | |
154 | 7 | |
155 | 4 | |
156 | 0 | |
157 | 3 | |
158 | 7 | |
159 | 2 | |
160 | -2 | |
161 | 1 | |
3185942a | 162 | ./arith1.sub: line 35: ((: ++ : syntax error: operand expected (error token is "+ ") |
b80f6443 JA |
163 | 7 |
164 | 7 | |
3185942a | 165 | ./arith1.sub: line 38: ((: -- : syntax error: operand expected (error token is "- ") |
b80f6443 JA |
166 | 7 |
167 | 7 | |
168 | 7 | |
169 | 7 | |
170 | 1 | |
171 | 2 | |
172 | 1 | |
173 | 2 | |
174 | 1 | |
175 | 0 | |
176 | 5 | |
177 | 1 | |
178 | 6 | |
179 | 2 | |
180 | 3 | |
181 | 1 | |
182 | 4 | |
183 | 0 | |
3185942a | 184 | ./arith2.sub: line 33: ((: -- : syntax error: operand expected (error token is "- ") |
b80f6443 JA |
185 | -7 |
186 | -7 | |
3185942a | 187 | ./arith2.sub: line 37: ((: ++ : syntax error: operand expected (error token is "+ ") |
b80f6443 JA |
188 | 7 |
189 | 7 | |
190 | -7 | |
191 | -7 | |
192 | 7 | |
193 | 7 | |
bb70624e | 194 | 8 12 |
3185942a JA |
195 | ./arith.tests: line 274: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ") |
196 | ./arith.tests: line 278: a b: syntax error in expression (error token is "b") | |
197 | ./arith.tests: line 279: ((: a b: syntax error in expression (error token is "b") | |
28ef6c31 JA |
198 | 42 |
199 | 42 | |
200 | 42 | |
201 | 42 | |
202 | 42 | |
203 | 42 | |
3185942a | 204 | ./arith.tests: line 290: b[c]d: syntax error in expression (error token is "d") |