Add getMemberConst() and getElementConst() (6780,5602)

This commit is contained in:
Benoit Blanchon
2022-03-31 11:59:00 +02:00
parent 5fcdf1739e
commit c4d487b6cf
10 changed files with 164 additions and 59 deletions

View File

@@ -154,7 +154,8 @@ TEST_CASE("JsonVariant::operator[]") {
doc2.add(42);
var.link(doc2);
CHECK(var[0].as<int>() == 42);
bool ok = var[0].as<int>() == 42;
CHECK(ok);
}
SECTION("set value to linked array") {