forked from bblanchon/ArduinoJson
Disambiguated the name get() with getElement() and getMember()
This commit is contained in:
1 parent
7ed92bebd3
commit
e9b4c6289b
19 files changed
+172
-200
No files matched your search
@@ -12,13 +12,6 @@ TEST_CASE("JsonVariant::add()") {
|
||||
DynamicJsonDocument doc(4096);
|
||||
JsonVariant var = doc.to<JsonVariant>();
|
||||
|
||||
SECTION("No argument") {
|
||||
JsonVariant nested = var.add();
|
||||
|
||||
REQUIRE(var.is<JsonArray>() == true);
|
||||
REQUIRE(nested.isNull() == true);
|
||||
}
|
||||
|
||||
SECTION("integer") {
|
||||
var.add(42);
|
||||
|
||||
|
||||
Reference in new issue
Block a user