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

Unified Diff: tests/language/number_identifier_test.dart

Issue 2765893003: Fix warnings_checker.dart handling of 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
« no previous file with comments | « tests/language/null_test.dart ('k') | tests/language/optional_named_parameters_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/number_identifier_test.dart
diff --git a/tests/language/number_identifier_test.dart b/tests/language/number_identifier_test.dart
index b4178c09d78ae95827d2528a9eb7d32f10403823..1279328d1f7262fb13a711eac44c9f4b0f43c1c5 100644
--- a/tests/language/number_identifier_test.dart
+++ b/tests/language/number_identifier_test.dart
@@ -13,8 +13,8 @@ main() {
Expect.isTrue(0x10is int);
Expect.isTrue(-0x10is 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
+ 0x10as int; // //# 01: compile-time error
+ 0x; // //# 04: compile-time error
// Double literals.
Expect.isTrue(2.0is double);
@@ -29,16 +29,16 @@ main() {
Expect.equals(1e-2, 1e-2as double);
Expect.isTrue(1e+2is double);
Expect.equals(1e+2, 1e+2as double);
- Expect.throws(() => 1.e+2, // /// 05: ok
- (e) => e is NoSuchMethodError); // /// 05: continued
- 1d; // /// 06: compile-time error
- 1D; // /// 07: compile-time error
- Expect.throws(() => 1.d+2, // /// 08: ok
- (e) => e is NoSuchMethodError); // /// 08: continued
- Expect.throws(() => 1.D+2, // /// 09: ok
- (e) => e is NoSuchMethodError); // /// 09: continued
- 1.1d; // /// 10: compile-time error
- 1.1D; // /// 11: compile-time error
- 1e; // /// 02: compile-time error
- 1x; // /// 03: compile-time error
+ Expect.throws(() => 1.e+2, // //# 05: ok
+ (e) => e is NoSuchMethodError); // //# 05: continued
+ 1d; // //# 06: compile-time error
+ 1D; // //# 07: compile-time error
+ Expect.throws(() => 1.d+2, // //# 08: ok
+ (e) => e is NoSuchMethodError); // //# 08: continued
+ Expect.throws(() => 1.D+2, // //# 09: ok
+ (e) => e is NoSuchMethodError); // //# 09: continued
+ 1.1d; // //# 10: compile-time error
+ 1.1D; // //# 11: compile-time error
+ 1e; // //# 02: compile-time error
+ 1x; // //# 03: compile-time error
}
« no previous file with comments | « tests/language/null_test.dart ('k') | tests/language/optional_named_parameters_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698