2009-04-02 20:17:49 +00:00
|
|
|
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
|
2010-05-22 00:26:06 +02:00
|
|
|
unary plus, minus
|
2009-04-02 20:17:49 +00:00
|
|
|
-4 -4
|
|
|
|
4 4
|
2010-05-22 00:26:06 +02:00
|
|
|
conditional expressions
|
2009-04-02 20:17:49 +00:00
|
|
|
1 1
|
|
|
|
32 32
|
|
|
|
32 32
|
|
|
|
1 1
|
|
|
|
1 1
|
|
|
|
32 32
|
2010-05-22 00:26:06 +02:00
|
|
|
check that parentheses in `cmd` are interpreted correctly
|
|
|
|
3 3
|
|
|
|
check that the unevaluated part of the ternary operator does not do evaluation or assignment
|
2009-04-02 20:17:49 +00:00
|
|
|
20 20
|
|
|
|
30 30
|
|
|
|
20 20
|
|
|
|
30 30
|
2010-05-22 00:26:06 +02:00
|
|
|
check precedence of assignment vs. conditional operator
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
2010-05-22 00:26:06 +02:00
|
|
|
check precedence of assignment vs. conditional operator
|
|
|
|
associativity of assignment-operator operator
|
2009-04-02 20:17:49 +00:00
|
|
|
6 6
|
|
|
|
6,5,3 6,5,3
|
2010-05-22 00:26:06 +02:00
|
|
|
octal, hex
|
2009-04-02 20:17:49 +00:00
|
|
|
263 263
|
|
|
|
255 255
|
|
|
|
40 40
|
2021-09-25 22:25:19 +02:00
|
|
|
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
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
|
|
|
hush: divide by zero
|
2009-04-26 11:25:19 +00:00
|
|
|
hush: can't execute 'let': No such file or directory
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
2009-04-26 11:25:19 +00:00
|
|
|
hush: can't execute 'let': No such file or directory
|
2009-04-02 20:17:49 +00:00
|
|
|
abc
|
|
|
|
def
|
|
|
|
ghi
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
2009-04-02 20:17:49 +00:00
|
|
|
16 16
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
2010-09-16 11:50:46 +02:00
|
|
|
hush: malformed ?: operator
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
2009-04-02 20:17:49 +00:00
|
|
|
9 9
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
|
|
|
hush: arithmetic syntax error
|
2009-04-02 20:17:49 +00:00
|
|
|
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-25 22:04:45 +02:00
|
|
|
7 7
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
|
|
|
hush: arithmetic syntax error
|
|
|
|
hush: arithmetic syntax error
|
|
|
|
hush: arithmetic syntax error
|
|
|
|
hush: arithmetic syntax error
|
2009-04-02 20:17:49 +00:00
|
|
|
4 4
|
|
|
|
7 7
|
|
|
|
-7 -7
|
2021-09-25 22:04:45 +02:00
|
|
|
7
|
|
|
|
7
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
|
|
|
hush: arithmetic syntax error
|
|
|
|
hush: arithmetic syntax error
|
|
|
|
hush: arithmetic syntax error
|
2009-04-02 20:17:49 +00:00
|
|
|
6 6
|
|
|
|
3 3
|
|
|
|
7 7
|
|
|
|
4 4
|
|
|
|
0 0
|
|
|
|
3 3
|
|
|
|
7 7
|
|
|
|
2 2
|
|
|
|
-2 -2
|
|
|
|
1 1
|
2021-09-25 22:04:45 +02:00
|
|
|
7
|
|
|
|
7
|
|
|
|
7
|
|
|
|
7
|
|
|
|
7
|
|
|
|
7
|
2009-04-02 20:17:49 +00:00
|
|
|
5 5
|
|
|
|
1 1
|
2018-01-28 20:13:33 +01:00
|
|
|
6 6
|
|
|
|
2 2
|
|
|
|
3 3
|
|
|
|
1 1
|
2009-04-02 20:17:49 +00:00
|
|
|
4 4
|
|
|
|
0 0
|
2021-09-25 22:04:45 +02:00
|
|
|
-7
|
|
|
|
-7
|
|
|
|
7
|
|
|
|
7
|
2021-09-25 22:25:19 +02:00
|
|
|
-7 -7
|
|
|
|
-7 -7
|
|
|
|
7 7
|
|
|
|
7 7
|
2009-04-02 20:17:49 +00:00
|
|
|
8 12
|
2010-09-15 13:33:02 +02:00
|
|
|
hush: arithmetic syntax error
|
2009-04-02 20:17:49 +00:00
|
|
|
42
|
|
|
|
42
|
|
|
|
42
|
2009-04-26 11:25:19 +00:00
|
|
|
hush: can't execute 'a[b[c]d]=e': No such file or directory
|