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

Unified Diff: tests/utils/json_test.dart

Issue 10307003: Update locale char when moving position in number parsing in the JSON parser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/json_test.dart
diff --git a/tests/utils/json_test.dart b/tests/utils/json_test.dart
index 20138f5c8b5ff5f34fee6c3170868acf8032355e..02efdbf35391053998c6a6ca94b2cb545dd58b47 100644
--- a/tests/utils/json_test.dart
+++ b/tests/utils/json_test.dart
@@ -18,6 +18,7 @@ void testParse() {
Expect.equals(-42, JSON.parse(' -42 '));
Expect.equals(3, JSON.parse(' 3e0 '));
Expect.equals(3.14, JSON.parse(' 3.14 '));
+ Expect.equals(1.0E-06, JSON.parse(' 1.0E-06 '));
Lasse Reichstein Nielsen 2012/05/02 08:54:45 More tests. How about at least: 1E0 1E+0 1E-0
Anders Johnsen 2012/05/02 09:05:46 Thank you! Added!
Expect.equals(true, JSON.parse(' true '));
Expect.equals(false, JSON.parse(' false'));
Expect.equals(null, JSON.parse(' null '));
« 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