blob: 680d9a954f6406b5bf98ef10ede99ab9d0e1d3df [file] [log] [blame]
Jari Aaltoccc6cda1996-12-23 17:02:34 +00001163
2166
34
416
58
62
74
82
92
101
110
120
130
141
151
162
17-3
18-2
191
200
212
22131072
2329
2433
2549
261
271
280
290
301
311
321
332
343
351
3658
372
3860
391
40256
4116
4262
434
4429
455
46-4
474
481
4932
5032
511
521
5332
Jari Aalto31859422009-01-12 13:36:28 +0000544
Jari Aaltoccc6cda1996-12-23 17:02:34 +00005520
561,i+=2
5730
581,j+=2
5920
601,i+=2
6130
621,j+=2
Jari Aalto31859422009-01-12 13:36:28 +000063./arith.tests: line 114: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2")
Jari Aaltoccc6cda1996-12-23 17:02:34 +00006420
656
666,5,3
67263
68255
69255
70127
7136
7240
7310
7410
7510
7610
7710
7810
7936
8036
8162
8263
Jari Aalto31859422009-01-12 13:36:28 +000083./arith.tests: line 149: 3425#56: invalid arithmetic base (error token is "3425#56")
Jari Aaltoccc6cda1996-12-23 17:02:34 +0000840
Jari Aalto31859422009-01-12 13:36:28 +000085./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")
Jari Aaltod166f041997-06-05 14:59:13 +000093abc
94def
95ghi
96ok
976
981
990
Jari Aalto31859422009-01-12 13:36:28 +0000100./arith.tests: line 183: 4 + : syntax error: operand expected (error token is "+ ")
Jari Aaltod166f041997-06-05 14:59:13 +000010116
Jari Aalto31859422009-01-12 13:36:28 +0000102./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 ": ")
Jari Aaltod166f041997-06-05 14:59:13 +00001059
Jari Aalto31859422009-01-12 13:36:28 +0000106./arith.tests: line 196: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ")
Jari Aaltod166f041997-06-05 14:59:13 +00001079
Jari Aalto31859422009-01-12 13:36:28 +0000108./arith.tests: line 199: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ")
Jari Aaltod166f041997-06-05 14:59:13 +00001099
1100
1119
1120
1139
1141
1159
1167
1177
1184
Jari Aaltocce855b1998-04-17 19:52:44 +000011932767
12032768
121131072
1222147483647
1231
Jari Aaltobb706242000-03-17 21:46:59 +00001244
1254
1265
1275
1284
1293
1303
1314
1324
1337
Jari Aalto31859422009-01-12 13:36:28 +0000134./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 ")
Jari Aaltobb706242000-03-17 21:46:59 +00001394
1407
141-7
1427
1437
Jari Aalto31859422009-01-12 13:36:28 +0000144./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 "+ ")
Jari Aaltob80f6442004-07-27 13:29:18 +00001481
1492
1501
1512
1526
1533
1547
1554
1560
1573
1587
1592
160-2
1611
Jari Aalto31859422009-01-12 13:36:28 +0000162./arith1.sub: line 35: ((: ++ : syntax error: operand expected (error token is "+ ")
Jari Aaltob80f6442004-07-27 13:29:18 +00001637
1647
Jari Aalto31859422009-01-12 13:36:28 +0000165./arith1.sub: line 38: ((: -- : syntax error: operand expected (error token is "- ")
Jari Aaltob80f6442004-07-27 13:29:18 +00001667
1677
1687
1697
1701
1712
1721
1732
1741
1750
1765
1771
1786
1792
1803
1811
1824
1830
Jari Aalto31859422009-01-12 13:36:28 +0000184./arith2.sub: line 33: ((: -- : syntax error: operand expected (error token is "- ")
Jari Aaltob80f6442004-07-27 13:29:18 +0000185-7
186-7
Jari Aalto31859422009-01-12 13:36:28 +0000187./arith2.sub: line 37: ((: ++ : syntax error: operand expected (error token is "+ ")
Jari Aaltob80f6442004-07-27 13:29:18 +00001887
1897
190-7
191-7
1927
1937
Chet Ramey495aee42011-11-22 19:11:26 -05001941
1951
1964
1975
198-3
1992
2004
2015000
2025000
2031
2040
2050
2061
2072147483649
Chet Rameyac50fba2014-02-26 09:36:43 -05002080
2090
2100
2110
2120
2130
214-9223372036854775808
215-9223372036854775808
216-9223372036854775808
217-9223372036854775808
218-9223372036854775808
219-9223372036854775808
220-9223372036854775808
221-9223372036854775808
222-9223372036854775808
223-9223372036854775808
2249223372036854775805 9223372036854775806 9223372036854775807
225123 456
226123 456
227123 456
228123 456
229123 456
230123 456
2311
2321 2 3 4 5 6 7
2330 1 2 3 4 5 6 7
2340
2350, 0
2360, 1
Jari Aaltobb706242000-03-17 21:46:59 +00002378 12
Chet Rameyac50fba2014-02-26 09:36:43 -0500238./arith.tests: line 286: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
239./arith.tests: line 290: a b: syntax error in expression (error token is "b")
240./arith.tests: line 291: ((: a b: syntax error in expression (error token is "b")
Jari Aalto28ef6c32001-04-06 19:14:31 +000024142
24242
24342
24442
24542
24642
Chet Rameyac50fba2014-02-26 09:36:43 -0500247./arith.tests: line 302: b[c]d: syntax error in expression (error token is "d")