2007-03-05 05:57:50 +05:30
|
|
|
Format: 'expected actual'
|
|
|
|
163 163
|
|
|
|
4 4
|
|
|
|
16 16
|
|
|
|
8 8
|
|
|
|
2 2
|
|
|
|
4 4
|
|
|
|
2 2
|
|
|
|
2 2
|
|
|
|
1 1
|
|
|
|
0 0
|
|
|
|
0 0
|
|
|
|
0 0
|
|
|
|
1 1
|
|
|
|
1 1
|
|
|
|
2 2
|
|
|
|
-3 -3
|
|
|
|
-2 -2
|
|
|
|
1 1
|
|
|
|
0 0
|
|
|
|
2 2
|
|
|
|
131072 131072
|
|
|
|
29 29
|
|
|
|
33 33
|
|
|
|
49 49
|
|
|
|
1 1
|
|
|
|
1 1
|
|
|
|
0 0
|
|
|
|
0 0
|
|
|
|
1 1
|
|
|
|
1 1
|
|
|
|
1 1
|
|
|
|
2 2
|
|
|
|
3 3
|
|
|
|
1 1
|
|
|
|
58 58
|
|
|
|
2 2
|
|
|
|
60 60
|
|
|
|
1 1
|
|
|
|
256 256
|
|
|
|
16 16
|
|
|
|
62 62
|
|
|
|
4 4
|
|
|
|
29 29
|
|
|
|
5 5
|
2021-09-26 01:55:19 +05:30
|
|
|
unary plus, minus
|
2007-03-05 05:57:50 +05:30
|
|
|
-4 -4
|
|
|
|
4 4
|
2021-09-26 01:55:19 +05:30
|
|
|
conditional expressions
|
2007-03-05 05:57:50 +05:30
|
|
|
1 1
|
|
|
|
32 32
|
|
|
|
32 32
|
|
|
|
1 1
|
|
|
|
1 1
|
|
|
|
32 32
|
2021-09-26 01:55:19 +05:30
|
|
|
check that the unevaluated part of the ternary operator does not do evaluation or assignment
|
2007-03-05 05:57:50 +05:30
|
|
|
20 20
|
|
|
|
30 30
|
|
|
|
20 20
|
|
|
|
30 30
|
2021-09-26 01:55:19 +05:30
|
|
|
check precedence of assignment vs. conditional operator
|
|
|
|
./arith.tests: line 116: arithmetic syntax error
|
|
|
|
check precedence of assignment vs. conditional operator
|
|
|
|
associativity of assignment-operator operator
|
2007-03-05 05:57:50 +05:30
|
|
|
6 6
|
|
|
|
6,5,3 6,5,3
|
2021-09-26 01:55:19 +05:30
|
|
|
octal, hex
|
2007-03-05 05:57:50 +05:30
|
|
|
263 263
|
|
|
|
255 255
|
|
|
|
40 40
|
2021-09-26 01:55:19 +05:30
|
|
|
other bases
|
|
|
|
10 10
|
|
|
|
10 10
|
|
|
|
10 10
|
|
|
|
10 10
|
|
|
|
10 10
|
|
|
|
10 10
|
|
|
|
36 36
|
|
|
|
36 36
|
|
|
|
62 62
|
|
|
|
63 63
|
|
|
|
missing number after base
|
|
|
|
0 0
|
|
|
|
./arith.tests: line 162: arithmetic syntax error
|
|
|
|
./arith.tests: line 164: divide by zero
|
|
|
|
./arith.tests: let: line 165: arithmetic syntax error
|
|
|
|
./arith.tests: line 166: arithmetic syntax error
|
|
|
|
./arith.tests: let: line 167: arithmetic syntax error
|
2007-03-05 05:57:50 +05:30
|
|
|
abc
|
|
|
|
def
|
|
|
|
ghi
|
2021-09-26 01:55:19 +05:30
|
|
|
./arith.tests: line 190: arithmetic syntax error
|
2007-03-05 05:57:50 +05:30
|
|
|
16 16
|
2021-09-26 01:55:19 +05:30
|
|
|
./arith.tests: line 195: arithmetic syntax error
|
|
|
|
./arith.tests: line 196: malformed ?: operator
|
|
|
|
./arith.tests: line 197: arithmetic syntax error
|
2007-03-05 05:57:50 +05:30
|
|
|
9 9
|
2021-09-26 01:55:19 +05:30
|
|
|
./arith.tests: line 204: arithmetic syntax error
|
|
|
|
./arith.tests: line 207: arithmetic syntax error
|
2007-03-05 05:57:50 +05:30
|
|
|
9 9
|
|
|
|
9 9
|
|
|
|
9 9
|
|
|
|
7 7
|
|
|
|
7
|
|
|
|
4 4
|
|
|
|
32767 32767
|
|
|
|
32768 32768
|
|
|
|
131072 131072
|
|
|
|
2147483647 2147483647
|
|
|
|
1 1
|
|
|
|
4 4
|
|
|
|
4 4
|
|
|
|
5 5
|
|
|
|
5 5
|
|
|
|
4 4
|
|
|
|
3 3
|
|
|
|
3 3
|
|
|
|
4 4
|
|
|
|
4 4
|
2021-09-26 01:34:45 +05:30
|
|
|
7 7
|
2021-09-26 01:55:19 +05:30
|
|
|
./arith.tests: line 256: arithmetic syntax error
|
|
|
|
./arith.tests: line 258: arithmetic syntax error
|
2010-09-15 17:03:02 +05:30
|
|
|
./arith.tests: line 259: arithmetic syntax error
|
2021-09-26 01:55:19 +05:30
|
|
|
./arith.tests: line 261: arithmetic syntax error
|
2010-09-15 17:03:02 +05:30
|
|
|
./arith.tests: line 262: arithmetic syntax error
|
2007-03-05 05:57:50 +05:30
|
|
|
4 4
|
|
|
|
7 7
|
|
|
|
-7 -7
|
2021-09-26 01:34:45 +05:30
|
|
|
7
|
|
|
|
7
|
2010-09-15 17:03:02 +05:30
|
|
|
./arith1.sub: line 2: arithmetic syntax error
|
|
|
|
./arith1.sub: line 3: arithmetic syntax error
|
|
|
|
./arith1.sub: line 4: arithmetic syntax error
|
|
|
|
./arith1.sub: line 5: arithmetic syntax error
|
2007-03-05 05:57:50 +05:30
|
|
|
6 6
|
|
|
|
3 3
|
|
|
|
7 7
|
|
|
|
4 4
|
|
|
|
0 0
|
|
|
|
3 3
|
|
|
|
7 7
|
|
|
|
2 2
|
|
|
|
-2 -2
|
|
|
|
1 1
|
2021-09-26 01:34:45 +05:30
|
|
|
7
|
|
|
|
7
|
|
|
|
7
|
|
|
|
7
|
|
|
|
7
|
|
|
|
7
|
2007-03-05 05:57:50 +05:30
|
|
|
5 5
|
|
|
|
1 1
|
2018-01-29 00:43:33 +05:30
|
|
|
6 6
|
|
|
|
2 2
|
|
|
|
3 3
|
|
|
|
1 1
|
2007-03-05 05:57:50 +05:30
|
|
|
4 4
|
|
|
|
0 0
|
2021-09-26 01:34:45 +05:30
|
|
|
-7
|
|
|
|
-7
|
|
|
|
7
|
|
|
|
7
|
2021-09-26 01:55:19 +05:30
|
|
|
-7 -7
|
|
|
|
-7 -7
|
|
|
|
7 7
|
|
|
|
7 7
|
2007-03-05 05:57:50 +05:30
|
|
|
8 12
|
2021-09-26 01:55:19 +05:30
|
|
|
./arith.tests: line 289: arithmetic syntax error
|
2007-03-05 05:57:50 +05:30
|
|
|
42
|
|
|
|
42
|
|
|
|
42
|
2021-09-26 01:55:19 +05:30
|
|
|
./arith.tests: line 301: a[b[c]d]=e: not found
|