forked from bblanchon/ArduinoJson
Fixed deserializeJson() not being picky enough (fixes #969)
This commit is contained in:
1 parent
6071bd07ec
commit
6011a2f51a
4 files changed
+12
-2
No files matched your search
@@ -16,3 +16,9 @@ TEST_CASE("Test uint32_t overflow") {
|
||||
REQUIRE(first.type() == uint8_t(VALUE_IS_POSITIVE_INTEGER));
|
||||
REQUIRE(second.type() == uint8_t(VALUE_IS_FLOAT));
|
||||
}
|
||||
|
||||
TEST_CASE("Invalid value") {
|
||||
ParsedNumber<float, uint32_t> result = parseNumber<float, uint32_t>("6a3");
|
||||
|
||||
REQUIRE(result.type() == uint8_t(VALUE_IS_NULL));
|
||||
}
|
||||
Reference in new issue
Block a user