Return JsonArray and JsonObject by value (closes #309)

This commit is contained in:
Benoit Blanchon
2018-07-02 09:35:21 +02:00
parent 4fe2b1100e
commit b105e6f7c4
93 changed files with 983 additions and 1091 deletions

View File

@ -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");
}