Removed JsonArray::is<T>(i) and JsonArray::set(i,v)

Removed `JsonObject::is<T>(k)` and `JsonObject::set(k,v)`
Replaced `T JsonArray::get<T>(i)` with `JsonVariant JsonArray::get(i)`
Replaced `T JsonObject::get<T>(k)` with `JsonVariant JsonObject::get(k)`
This commit is contained in:
Benoit Blanchon
2018-10-18 14:51:02 +02:00
parent 4eee8e8bdf
commit 1a4515c0b9
20 changed files with 38 additions and 615 deletions

View File

@ -21,15 +21,7 @@ TEST_CASE("JsonArray::size()") {
REQUIRE(2U == array.size());
}
SECTION("remains the same after set()") {
array.add("hello");
REQUIRE(1U == array.size());
array.set(0, "hello");
REQUIRE(1U == array.size());
}
SECTION("remains the same after assigment") {
SECTION("remains the same after replacing an element") {
array.add("hello");
REQUIRE(1U == array.size());