Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: tests/language_strong/number_identifier_test.dart

Issue 2768073002: Format all multitests (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/language_strong/number_identifier_test.dart
diff --git a/tests/language_strong/number_identifier_test.dart b/tests/language_strong/number_identifier_test.dart
index 1279328d1f7262fb13a711eac44c9f4b0f43c1c5..1087a68a4f4a1308f5edcb75f5be0f37c97ad92c 100644
--- a/tests/language_strong/number_identifier_test.dart
+++ b/tests/language_strong/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

Powered by Google App Engine
This is Rietveld 408576698