forked from bblanchon/ArduinoJson
Added StaticJsonDocument and DynamicJsonDocument.
Removed StaticJsonArray and DynamicJsonArray. Removed StaticJsonObject and DynamicJsonObject. Removed StaticJsonVariant and DynamicJsonVariant.
This commit is contained in:
1 parent
a13b9e8bdc
commit
1feb92679d
100 files changed
+1696
-1844
No files matched your search
@@ -15,7 +15,8 @@ static void check(JsonArray &array, std::string expected) {
|
||||
}
|
||||
|
||||
TEST_CASE("serializeJson(JsonArray)") {
|
||||
StaticJsonArray<JSON_ARRAY_SIZE(2)> array;
|
||||
StaticJsonDocument<JSON_ARRAY_SIZE(2)> doc;
|
||||
JsonArray &array = doc.to<JsonArray>();
|
||||
|
||||
SECTION("Empty") {
|
||||
check(array, "[]");
|
||||
|
||||
Reference in new issue
Block a user