OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Test basic integer operations. | 4 // Test basic integer operations. |
5 | 5 |
6 main() { | 6 main() { |
7 Expect.equals("NaN", (double.NAN).toString()); | 7 Expect.equals("NaN", (double.NAN).toString()); |
8 Expect.equals("Infinity", (1/0).toString()); | 8 Expect.equals("Infinity", (1/0).toString()); |
9 Expect.equals("-Infinity", (-1/0).toString()); | 9 Expect.equals("-Infinity", (-1/0).toString()); |
10 Expect.equals("0.0", (0.0).toString()); | 10 Expect.equals("0.0", (0.0).toString()); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 Expect.equals("1000000000000000100.0", (1000000000000000128.0).toString()); | 56 Expect.equals("1000000000000000100.0", (1000000000000000128.0).toString()); |
57 Expect.equals("1e+21", (1000000000000000012800.0).toString()); | 57 Expect.equals("1e+21", (1000000000000000012800.0).toString()); |
58 Expect.equals("-1e+21", (-1000000000000000012800.0).toString()); | 58 Expect.equals("-1e+21", (-1000000000000000012800.0).toString()); |
59 Expect.equals("1e-7", (0.0000001).toString()); | 59 Expect.equals("1e-7", (0.0000001).toString()); |
60 Expect.equals("-1e-7", (-0.0000001).toString()); | 60 Expect.equals("-1e-7", (-0.0000001).toString()); |
61 Expect.equals("1.0000000000000001e+21", | 61 Expect.equals("1.0000000000000001e+21", |
62 (1000000000000000128000.0).toString()); | 62 (1000000000000000128000.0).toString()); |
63 Expect.equals("0.000001", (0.000001).toString()); | 63 Expect.equals("0.000001", (0.000001).toString()); |
64 Expect.equals("1e-7", (0.0000001).toString()); | 64 Expect.equals("1e-7", (0.0000001).toString()); |
65 } | 65 } |
OLD | NEW |