Lines Matching +full:3 +full:- +full:4

41 	atf_set "descr" "Test that expr(1) works with non-C LANG (PR bin/2486)"
46 atf_check -s exit:0 -o inline:"21\n" -e empty -x "expr 10 + 11"
48 export LANG=ru_RU.KOI8-R
49 atf_check -s exit:0 -o inline:"21\n" -e empty -x "expr 10 + 11"
61 test_expr '4611686018427387904 - -4611686018427387904' \
62 …"expr: integer overflow or underflow occurred for operation '4611686018427387904 - -46116860184273…
63 test_expr '-4611686018427387904 - 4611686018427387903' \
64 '-9223372036854775807'
65 test_expr '-4611686018427387904 - 4611686018427387905' \
66 …"expr: integer overflow or underflow occurred for operation '-4611686018427387904 - 46116860184273…
67 test_expr '-4611686018427387904 \* 1' '-4611686018427387904'
68 test_expr '-4611686018427387904 \* -1' '4611686018427387904'
69 test_expr '-4611686018427387904 \* 2' '-9223372036854775808'
70 test_expr '-4611686018427387904 \* 3' \
71 "expr: integer overflow or underflow occurred for operation '-4611686018427387904 * 3'"
72 test_expr '-4611686018427387904 \* -2' \
73 "expr: integer overflow or underflow occurred for operation '-4611686018427387904 * -2'"
77 test_expr '4611686018427387904 \* 3' \
78 "expr: integer overflow or underflow occurred for operation '4611686018427387904 * 3'"
83 atf_set "descr" "Test from gtk-- configure that cause problems on old expr"
86 test_expr '3 \> 3 \| 3 = 3 \& 4 \> 4 \| 3 = 3 \& 4 = 4 \& 5 \>= 5' '1'
87 test_expr '3 \> 3 \| 3 = 3 \& 4 \> 4 \| 3 = 3 \& 4 = 4 \& 5 \>= 6' '0'
88 test_expr '3 \> 3 \| 3 = 3 \& 4 \> 4 \| 3 = 3 \& 4 = 3 \& 5 \>= 5' '0'
89 test_expr '3 \> 3 \| 3 = 3 \& 4 \> 4 \| 3 = 2 \& 4 = 4 \& 5 \>= 5' '0'
90 test_expr '3 \> 2 \| 3 = 3 \& 4 \> 4 \| 3 = 3 \& 4 = 4 \& 5 \>= 6' '1'
91 test_expr '3 \> 3 \| 3 = 3 \& 4 \> 3 \| 3 = 3 \& 4 = 4 \& 5 \>= 5' '1'
99 test_expr '2 : 4 / 2' '0'
100 test_expr '4 : 4 % 3' '1'
112 test_expr '4 : \*' '0'
113 test_expr '4 : +' '0'
114 test_expr '4 : -' '0'
115 test_expr '4 : /' '0'
116 test_expr '4 : %' '0'
124 test_expr '2 + 4 \* 5' '22'
133 test_expr '-4' '-4'
152 test_expr '2 \<= 3' '1'
155 test_expr '2 \< 3' '1'
158 test_expr '2 = 4' '0'
161 test_expr '2 \>= 3' '0'
171 test_expr '1 \* -1' '-1'
180 test_expr '-1 + 5' '4'
181 test_expr '- 1 + 5' 'expr: syntax error'
183 test_expr '5 + -1' '4'
184 test_expr '5 + - 1' 'expr: syntax error'
186 test_expr '1 - -5' '6'
194 test_expr '-3 + -1 \* 4 + 3 / -6' '-7'
203 test_expr 'X1/2/3 : X\\\(.\*[^/]\\\)//\*[^/][^/]\*/\*$ \| . : \\\(.\\\)' '1/2'