serializeXxx() sets std::string and String instead of appending

This commit is contained in:
Benoit Blanchon
2023-07-31 18:37:35 +02:00
parent 3003756adb
commit af6954c224
6 changed files with 24 additions and 13 deletions

View File

@ -141,7 +141,7 @@ TEST_CASE("Writer<custom_string>") {
TEST_CASE("serializeJson(doc, String)") {
JsonDocument doc;
doc["hello"] = "world";
::String output;
::String output = "erase me";
SECTION("sufficient capacity") {
serializeJson(doc, output);