mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-11-07 01:51:37 +01:00
Replace JsonString::Ownership with bool
This commit is contained in:
@@ -101,7 +101,7 @@ TEST_CASE("adaptString()") {
|
||||
}
|
||||
|
||||
SECTION("JsonString linked") {
|
||||
JsonString orig("hello", JsonString::Ownership::Linked);
|
||||
JsonString orig("hello", true);
|
||||
auto s = adaptString(orig);
|
||||
|
||||
CHECK(s.isNull() == false);
|
||||
@@ -110,7 +110,7 @@ TEST_CASE("adaptString()") {
|
||||
}
|
||||
|
||||
SECTION("JsonString copied") {
|
||||
JsonString orig("hello", JsonString::Ownership::Copied);
|
||||
JsonString orig("hello", false);
|
||||
auto s = adaptString(orig);
|
||||
|
||||
CHECK(s.isNull() == false);
|
||||
|
||||
Reference in New Issue
Block a user