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

Unified Diff: tests/language/number_identifier_test.dart

Issue 23711004: Fix number scanning (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/language_dart2js.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/number_identifier_test.dart
===================================================================
--- tests/language/number_identifier_test.dart (revision 27197)
+++ tests/language/number_identifier_test.dart (working copy)
@@ -14,7 +14,7 @@
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
+ 0x; /// 04: compile-time error
// Double literals.
Expect.isTrue(2.0is double);
@@ -29,9 +29,8 @@
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
- e.memberName == const Symbol("e")); /// 05: continued
+ Expect.throws(() => 1.e+2, /// 05: ok
+ (e) => e is NoSuchMethodError); /// 05: continued
1e; /// 02: compile-time error
1x; /// 03: compile-time error
}
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698