forked from bblanchon/ArduinoJson
Remove capacity from JsonDocument's constructor
This commit is contained in:
1 parent
42b2840009
commit
0f319e7ca4
162 files changed
+438
-500
No files matched your search
@@ -5,8 +5,6 @@
|
||||
#include <ArduinoJson.h>
|
||||
#include <catch.hpp>
|
||||
|
||||
using ArduinoJson::detail::sizeofArray;
|
||||
|
||||
static void check(JsonArray array, std::string expected) {
|
||||
std::string actual;
|
||||
size_t actualLen = serializeJson(array, actual);
|
||||
@@ -17,7 +15,7 @@ static void check(JsonArray array, std::string expected) {
|
||||
}
|
||||
|
||||
TEST_CASE("serializeJson(JsonArray)") {
|
||||
JsonDocument doc(sizeofArray(2));
|
||||
JsonDocument doc;
|
||||
JsonArray array = doc.to<JsonArray>();
|
||||
|
||||
SECTION("Empty") {
|
||||
|
||||
Reference in new issue
Block a user