mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
nesting
This commit is contained in:
@@ -28,4 +28,12 @@ TEST_CASE("JsonVariant::nesting()") {
|
||||
var.to<JsonArray>();
|
||||
REQUIRE(var.nesting() == 1);
|
||||
}
|
||||
|
||||
SECTION("return depth of linked array") {
|
||||
StaticJsonDocument<128> doc2;
|
||||
doc2[0][0] = 42;
|
||||
var.link(doc2);
|
||||
|
||||
CHECK(var.nesting() == 2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user