forked from bblanchon/ArduinoJson
Simplified JsonVariant::as<T>() to always return T
This commit is contained in:
1 parent
9094179856
commit
e4ce75e20c
16 files changed
+78
-81
No files matched your search
@@ -182,8 +182,8 @@ TEST_CASE("deserialize JSON object") {
|
||||
REQUIRE(err == DeserializationError::Ok);
|
||||
REQUIRE(doc.is<JsonObject>());
|
||||
REQUIRE(obj.size() == 2);
|
||||
REQUIRE(obj["key1"].as<char*>() == 0);
|
||||
REQUIRE(obj["key2"].as<char*>() == 0);
|
||||
REQUIRE(obj["key1"].as<const char*>() == 0);
|
||||
REQUIRE(obj["key2"].as<const char*>() == 0);
|
||||
}
|
||||
|
||||
SECTION("Array") {
|
||||
|
||||
Reference in new issue
Block a user