forked from bblanchon/ArduinoJson
Fixed floating point value parsing in the form "4e2" or "4E2".
This commit is contained in:
1 parent
2e47d546b2
commit
1c450fd3aa
3 files changed
+8
-5
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user