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

Issue 10307003: Update locale char when moving position in number parsing in the JSON parser. (Closed)

Created:
8 years, 7 months ago by Anders Johnsen
Modified:
8 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Update locale char when moving position in number parsing in the JSON parser. BUG=http://code.google.com/p/dart/issues/detail?id=2858 TEST= Committed: https://code.google.com/p/dart/source/detail?r=7219

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added test cases. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -1 line) Patch
M lib/json/json.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/utils/json_test.dart View 1 2 chunks +72 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
8 years, 7 months ago (2012-05-02 08:19:17 UTC) #1
Anders Johnsen
8 years, 7 months ago (2012-05-02 08:49:16 UTC) #2
Lasse Reichstein Nielsen
LGTM https://chromiumcodereview.appspot.com/10307003/diff/1/tests/utils/json_test.dart File tests/utils/json_test.dart (right): https://chromiumcodereview.appspot.com/10307003/diff/1/tests/utils/json_test.dart#newcode21 tests/utils/json_test.dart:21: Expect.equals(1.0E-06, JSON.parse(' 1.0E-06 ')); More tests. How about ...
8 years, 7 months ago (2012-05-02 08:54:45 UTC) #3
Anders Johnsen
8 years, 7 months ago (2012-05-02 09:05:46 UTC) #4
Committing!

https://chromiumcodereview.appspot.com/10307003/diff/1/tests/utils/json_test....
File tests/utils/json_test.dart (right):

https://chromiumcodereview.appspot.com/10307003/diff/1/tests/utils/json_test....
tests/utils/json_test.dart:21: Expect.equals(1.0E-06, JSON.parse(' 1.0E-06 '));
On 2012/05/02 08:54:45, Lasse Reichstein Nielsen wrote:
> More tests. How about at least:
>  1E0
>  1E+0
>  1E-0
>  1E00
>  1E+00
>  1E-00
>  1E+10
>  1E+010   // Two digits to check that it's not octal.
>  1E+0010
>  1E10
>  1E010
>  1E0010
>  1E-10
>  1E-0010
> (and with lower-case 'e' too)
> And, in the failing part:
>  1E--6
>  1E-+6
>  1E+-6
>  1E++6
>  1E6.6
>  1E-6.6
>  1E+6.6
> 

Thank you! Added!

Powered by Google App Engine
This is Rietveld 408576698