forked from bblanchon/ArduinoJson
Add JsonVariant::link()
(resolves #1343)
This commit is contained in:
@ -43,5 +43,13 @@ TEST_CASE("nullptr") {
|
||||
|
||||
variant.clear();
|
||||
REQUIRE(variant.is<std::nullptr_t>() == true);
|
||||
|
||||
StaticJsonDocument<128> doc2;
|
||||
doc2["hello"] = "world";
|
||||
variant.link(doc2);
|
||||
REQUIRE(variant.is<std::nullptr_t>() == false);
|
||||
|
||||
doc2.clear();
|
||||
REQUIRE(variant.is<std::nullptr_t>() == true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user