| OLD | NEW |
| 1 // Copyright (c) 2013 the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013 the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 | 6 |
| 7 const whiteSpace = const [ | 7 const whiteSpace = const [ |
| 8 "", | 8 "", |
| 9 "\x09", | 9 "\x09", |
| 10 "\x0a", | 10 "\x0a", |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 123 } |
| 124 | 124 |
| 125 void main() { | 125 void main() { |
| 126 testInt(0); | 126 testInt(0); |
| 127 testInt(1); | 127 testInt(1); |
| 128 testInt(9); | 128 testInt(9); |
| 129 testInt(10); | 129 testInt(10); |
| 130 testInt(99); | 130 testInt(99); |
| 131 testInt(100); | 131 testInt(100); |
| 132 testIntAround(256); | 132 testIntAround(256); |
| 133 testIntAround(0x80000000); // 2^31 | 133 testIntAround(0x80000000); // 2^31 |
| 134 testIntAround(0x100000000); // 2^32 | 134 testIntAround(0x100000000); // 2^32 |
| 135 testIntAround(0x10000000000000); // 2^52 | 135 testIntAround(0x10000000000000); // 2^52 |
| 136 testIntAround(0x20000000000000); // 2^53 | 136 testIntAround(0x20000000000000); // 2^53 |
| 137 testIntAround(0x40000000000000); // 2^54 | 137 testIntAround(0x40000000000000); // 2^54 |
| 138 testIntAround(0x8000000000000000); // 2^63 | 138 testIntAround(0x8000000000000000); // 2^63 |
| 139 testIntAround(0x10000000000000000); // 2^64 | 139 testIntAround(0x10000000000000000); // 2^64 |
| 140 testIntAround(0x100000000000000000000); // 2^80 | 140 testIntAround(0x100000000000000000000); // 2^80 |
| 141 | 141 |
| 142 testDouble(0.0); | 142 testDouble(0.0); |
| 143 testDouble(5e-324); | 143 testDouble(5e-324); |
| 144 testDouble(2.225073858507201e-308); | 144 testDouble(2.225073858507201e-308); |
| 145 testDouble(2.2250738585072014e-308); | 145 testDouble(2.2250738585072014e-308); |
| 146 testDouble(0.49999999999999994); | 146 testDouble(0.49999999999999994); |
| 147 testDouble(0.5); | 147 testDouble(0.5); |
| 148 testDouble(0.50000000000000006); | 148 testDouble(0.50000000000000006); |
| 149 testDouble(0.9999999999999999); | 149 testDouble(0.9999999999999999); |
| 150 testDouble(1.0); | 150 testDouble(1.0); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 testFail("INFINITY"); | 225 testFail("INFINITY"); |
| 226 testFail("1.#INF"); | 226 testFail("1.#INF"); |
| 227 testFail("inf"); | 227 testFail("inf"); |
| 228 testFail("nan"); | 228 testFail("nan"); |
| 229 testFail("NAN"); | 229 testFail("NAN"); |
| 230 testFail("1.#IND"); | 230 testFail("1.#IND"); |
| 231 testFail("indef"); | 231 testFail("indef"); |
| 232 testFail("qnan"); | 232 testFail("qnan"); |
| 233 testFail("snan"); | 233 testFail("snan"); |
| 234 } | 234 } |
| OLD | NEW |