OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 class NumberSyntaxTest { | 5 class NumberSyntaxTest { |
6 | 6 |
7 static void testMain() { | 7 static void testMain() { |
8 testShortDoubleSyntax(); | 8 testShortDoubleSyntax(); |
9 testDotSelectorSyntax(); | 9 testDotSelectorSyntax(); |
10 } | 10 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 Expect.equals(2.1e-34, 2.1e-34.dynamic); | 72 Expect.equals(2.1e-34, 2.1e-34.dynamic); |
73 Expect.equals((0e0).toString(), 0e0.toString()); | 73 Expect.equals((0e0).toString(), 0e0.toString()); |
74 Expect.equals((1e+1).toString(), 1e+1.toString()); | 74 Expect.equals((1e+1).toString(), 1e+1.toString()); |
75 Expect.equals((2.1e-34).toString(), 2.1e-34.toString()); | 75 Expect.equals((2.1e-34).toString(), 2.1e-34.toString()); |
76 } | 76 } |
77 | 77 |
78 } | 78 } |
79 main() { | 79 main() { |
80 NumberSyntaxTest.testMain(); | 80 NumberSyntaxTest.testMain(); |
81 } | 81 } |
OLD | NEW |