Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 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 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 54 | 4 |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 55 | 20 |
| 56 | 1,i+=2 |
| 57 | 30 |
| 58 | 1,j+=2 |
| 59 | 20 |
| 60 | 1,i+=2 |
| 61 | 30 |
| 62 | 1,j+=2 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 63 | ./arith.tests: line 114: 1 ? 20 : x+=2: attempted assignment to non-variable (error token is "+=2") |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 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 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 83 | ./arith.tests: line 149: 3425#56: invalid arithmetic base (error token is "3425#56") |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 84 | 0 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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") |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 93 | abc |
| 94 | def |
| 95 | ghi |
| 96 | ok |
| 97 | 6 |
| 98 | 1 |
| 99 | 0 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 100 | ./arith.tests: line 183: 4 + : syntax error: operand expected (error token is "+ ") |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 101 | 16 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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 ": ") |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 105 | 9 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 106 | ./arith.tests: line 196: 0 && B=42 : attempted assignment to non-variable (error token is "=42 ") |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 107 | 9 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 108 | ./arith.tests: line 199: 1 || B=88 : attempted assignment to non-variable (error token is "=88 ") |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 109 | 9 |
| 110 | 0 |
| 111 | 9 |
| 112 | 0 |
| 113 | 9 |
| 114 | 1 |
| 115 | 9 |
| 116 | 7 |
| 117 | 7 |
| 118 | 4 |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 119 | 32767 |
| 120 | 32768 |
| 121 | 131072 |
| 122 | 2147483647 |
| 123 | 1 |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 124 | 4 |
| 125 | 4 |
| 126 | 5 |
| 127 | 5 |
| 128 | 4 |
| 129 | 3 |
| 130 | 3 |
| 131 | 4 |
| 132 | 4 |
| 133 | 7 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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 ") |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 139 | 4 |
| 140 | 7 |
| 141 | -7 |
| 142 | 7 |
| 143 | 7 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 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 "+ ") |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 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 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 162 | ./arith1.sub: line 35: ((: ++ : syntax error: operand expected (error token is "+ ") |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 163 | 7 |
| 164 | 7 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 165 | ./arith1.sub: line 38: ((: -- : syntax error: operand expected (error token is "- ") |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 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 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 184 | ./arith2.sub: line 33: ((: -- : syntax error: operand expected (error token is "- ") |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 185 | -7 |
| 186 | -7 |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 187 | ./arith2.sub: line 37: ((: ++ : syntax error: operand expected (error token is "+ ") |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 188 | 7 |
| 189 | 7 |
| 190 | -7 |
| 191 | -7 |
| 192 | 7 |
| 193 | 7 |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 194 | 1 |
| 195 | 1 |
| 196 | 4 |
| 197 | 5 |
| 198 | -3 |
| 199 | 2 |
| 200 | 4 |
| 201 | 5000 |
| 202 | 5000 |
| 203 | 1 |
| 204 | 0 |
| 205 | 0 |
| 206 | 1 |
| 207 | 2147483649 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 208 | 0 |
| 209 | 0 |
| 210 | 0 |
| 211 | 0 |
| 212 | 0 |
| 213 | 0 |
| 214 | -9223372036854775808 |
| 215 | -9223372036854775808 |
| 216 | -9223372036854775808 |
| 217 | -9223372036854775808 |
| 218 | -9223372036854775808 |
| 219 | -9223372036854775808 |
| 220 | -9223372036854775808 |
| 221 | -9223372036854775808 |
| 222 | -9223372036854775808 |
| 223 | -9223372036854775808 |
| 224 | 9223372036854775805 9223372036854775806 9223372036854775807 |
| 225 | 123 456 |
| 226 | 123 456 |
| 227 | 123 456 |
| 228 | 123 456 |
| 229 | 123 456 |
| 230 | 123 456 |
| 231 | 1 |
| 232 | 1 2 3 4 5 6 7 |
| 233 | 0 1 2 3 4 5 6 7 |
| 234 | 0 |
| 235 | 0, 0 |
| 236 | 0, 1 |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 237 | 8 12 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 238 | ./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 Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 241 | 42 |
| 242 | 42 |
| 243 | 42 |
| 244 | 42 |
| 245 | 42 |
| 246 | 42 |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 247 | ./arith.tests: line 302: b[c]d: syntax error in expression (error token is "d") |