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

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

No files matched your search

+1 -1
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);