forked from bblanchon/ArduinoJson
Remove StaticJsonDocument
This commit is contained in:
1 parent
5edd435fe9
commit
17a482a9b1
66 files changed
+477
-1728
No files matched your search
@@ -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