Fixed floating point value parsing in the form "4e2" or "4E2".

This commit is contained in:
Benoit Blanchon
2014-11-08 15:56:40 +01:00
parent 2e47d546b2
commit 1c450fd3aa
3 changed files with 8 additions and 5 deletions

View File

@ -114,12 +114,12 @@ TEST_F(JsonParser_Array_Tests, TwoIntegers) {
}
TEST_F(JsonParser_Array_Tests, TwoDoubles) {
whenInputIs("[4.2,8.4]");
whenInputIs("[4.2,1e2]");
parseMustSucceed();
sizeMustBe(2);
firstElementMustBe(4.2);
secondElementMustBe(8.4);
secondElementMustBe(1e2);
}
TEST_F(JsonParser_Array_Tests, TwoBooleans) {