Index: tests/language/number_identifier_test.dart |
diff --git a/tests/language/number_identifier_test.dart b/tests/language/number_identifier_test.dart |
index 1279328d1f7262fb13a711eac44c9f4b0f43c1c5..1087a68a4f4a1308f5edcb75f5be0f37c97ad92c 100644 |
--- a/tests/language/number_identifier_test.dart |
+++ b/tests/language/number_identifier_test.dart |
@@ -6,29 +6,29 @@ import "package:expect/expect.dart"; |
main() { |
// Integer literals. |
- Expect.isTrue(2is int); |
- Expect.equals(2, 2as int); |
- Expect.isTrue(-2is int); |
- Expect.equals(-2, -2as int); |
- Expect.isTrue(0x10is int); |
- Expect.isTrue(-0x10is int); |
+ Expect.isTrue(2 is int); |
+ Expect.equals(2, 2 as int); |
+ Expect.isTrue(-2 is int); |
+ Expect.equals(-2, -2 as int); |
+ Expect.isTrue(0x10 is int); |
+ Expect.isTrue(-0x10 is int); |
// "a" will be part of hex literal, the following "s" is an error. |
0x10as int; // //# 01: compile-time error |
0x; // //# 04: compile-time error |
// Double literals. |
- Expect.isTrue(2.0is double); |
- Expect.equals(2.0, 2.0as double); |
- Expect.isTrue(-2.0is double); |
- Expect.equals(-2.0, -2.0as double); |
- Expect.isTrue(.2is double); |
- Expect.equals(0.2, .2as double); |
- Expect.isTrue(1e2is double); |
- Expect.equals(1e2, 1e2as double); |
- Expect.isTrue(1e-2is double); |
- Expect.equals(1e-2, 1e-2as double); |
- Expect.isTrue(1e+2is double); |
- Expect.equals(1e+2, 1e+2as double); |
+ Expect.isTrue(2.0 is double); |
+ Expect.equals(2.0, 2.0 as double); |
+ Expect.isTrue(-2.0 is double); |
+ Expect.equals(-2.0, -2.0 as double); |
+ Expect.isTrue(.2 is double); |
+ Expect.equals(0.2, .2 as double); |
+ Expect.isTrue(1e2 is double); |
+ Expect.equals(1e2, 1e2 as double); |
+ Expect.isTrue(1e-2 is double); |
+ Expect.equals(1e-2, 1e-2 as double); |
+ Expect.isTrue(1e+2 is double); |
+ Expect.equals(1e+2, 1e+2 as double); |
Expect.throws(() => 1.e+2, // //# 05: ok |
(e) => e is NoSuchMethodError); // //# 05: continued |
1d; // //# 06: compile-time error |