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

@ -145,11 +145,11 @@ TEST_F(JsonParser_Object_Test, TwoIntergers) {
}
TEST_F(JsonParser_Object_Test, TwoDoubles) {
whenInputIs("{\"key1\":12.345,\"key2\":-7.89}");
whenInputIs("{\"key1\":12.345,\"key2\":-7E89}");
parseMustSucceed();
sizeMustBe(2);
keyMustHaveValue("key1", 12.345);
keyMustHaveValue("key2", -7.89);
keyMustHaveValue("key2", -7E89);
}
TEST_F(JsonParser_Object_Test, TwoBooleans) {