forked from bblanchon/ArduinoJson
Replace JsonString::Ownership with bool
This commit is contained in:
1 parent
8931651317
commit
ed5f890d28
9 files changed
+23
-23
No files matched your search
@@ -132,7 +132,7 @@ TEST_CASE("JsonVariant::set() when there is enough memory") {
|
||||
char str[16];
|
||||
|
||||
strcpy(str, "hello");
|
||||
bool result = variant.set(JsonString(str, JsonString::Linked));
|
||||
bool result = variant.set(JsonString(str, true));
|
||||
strcpy(str, "world");
|
||||
|
||||
REQUIRE(result == true);
|
||||
@@ -144,7 +144,7 @@ TEST_CASE("JsonVariant::set() when there is enough memory") {
|
||||
char str[16];
|
||||
|
||||
strcpy(str, "hello");
|
||||
bool result = variant.set(JsonString(str, JsonString::Copied));
|
||||
bool result = variant.set(JsonString(str));
|
||||
strcpy(str, "world");
|
||||
|
||||
REQUIRE(result == true);
|
||||
|
||||
Reference in new issue
Block a user