mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-29 10:17:39 +02:00
Remove StaticJsonDocument
This commit is contained in:
@ -15,7 +15,7 @@ static void check(JsonArray array, std::string expected) {
|
||||
}
|
||||
|
||||
TEST_CASE("serializeJson(JsonArray)") {
|
||||
StaticJsonDocument<JSON_ARRAY_SIZE(2)> doc;
|
||||
DynamicJsonDocument doc(JSON_ARRAY_SIZE(2));
|
||||
JsonArray array = doc.to<JsonArray>();
|
||||
|
||||
SECTION("Empty") {
|
||||
|
@ -47,7 +47,7 @@ TEST_CASE("serialize JsonObject to std::string") {
|
||||
}
|
||||
|
||||
TEST_CASE("serialize an std::string containing a NUL") {
|
||||
StaticJsonDocument<256> doc;
|
||||
DynamicJsonDocument doc(256);
|
||||
doc.set(std::string("hello\0world", 11));
|
||||
CHECK(doc.memoryUsage() == 12);
|
||||
|
||||
|
Reference in New Issue
Block a user