mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Return JsonArray and JsonObject by value (closes #309)
This commit is contained in:
@@ -14,11 +14,11 @@ void check(JsonVariant variant, const std::string &expected) {
|
||||
}
|
||||
|
||||
TEST_CASE("serializeJson(JsonVariant)") {
|
||||
SECTION("Empty") {
|
||||
check(JsonVariant(), "");
|
||||
SECTION("Undefined") {
|
||||
check(JsonVariant(), "null");
|
||||
}
|
||||
|
||||
SECTION("Null") {
|
||||
SECTION("Null string") {
|
||||
check(static_cast<char *>(0), "null");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user