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
@@ -99,8 +99,8 @@ TEST_CASE("deserialize JSON array") {
|
||||
|
||||
REQUIRE(err == DeserializationError::Ok);
|
||||
REQUIRE(2 == arr.size());
|
||||
REQUIRE(arr[0].as<char*>() == 0);
|
||||
REQUIRE(arr[1].as<char*>() == 0);
|
||||
REQUIRE(arr[0].as<const char*>() == 0);
|
||||
REQUIRE(arr[1].as<const char*>() == 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user