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

Unified Diff: tests/utils/src/JsonTest.dart

Issue 10206022: Require a digit when parsing JSON number. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test cases. Created 8 years, 8 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 | « lib/json/json.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/src/JsonTest.dart
diff --git a/tests/utils/src/JsonTest.dart b/tests/utils/src/JsonTest.dart
index cadf7944d949b86a1e1c1b986565bfab5a270392..20138f5c8b5ff5f34fee6c3170868acf8032355e 100644
--- a/tests/utils/src/JsonTest.dart
+++ b/tests/utils/src/JsonTest.dart
@@ -47,6 +47,8 @@ void testParseInvalid() {
Expect.throws(() => JSON.parse(s));
}
testString("");
+ testString("-");
+ testString("-.");
testString("3.a");
testString("{ key: value }");
testString("tru");
« no previous file with comments | « lib/json/json.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698