Fixed static JsonString not being saved by reference

This commit is contained in:
Benoit Blanchon committed 2020-02-16 17:34:04 +01:00
1 parent 58298ec5ba
commit e6ddfc7afb
2 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ TEST_CASE("JsonVariant and strings") {
variant.set(JsonString(str, true));
strcpy(str, "world");
REQUIRE(variant == "hello");
REQUIRE(variant == "world");
}
SECTION("stores non-static JsonString by copy") {