forked from bblanchon/ArduinoJson
Add more tests for JsonObjectConst
This commit is contained in:
@ -7,8 +7,6 @@
|
||||
|
||||
#include "Allocators.hpp"
|
||||
|
||||
using ArduinoJson::detail::sizeofObject;
|
||||
|
||||
TEST_CASE("JsonObject::operator[]") {
|
||||
SpyingAllocator spy;
|
||||
JsonDocument doc(&spy);
|
||||
@ -252,11 +250,3 @@ TEST_CASE("JsonObject::operator[]") {
|
||||
REQUIRE(false == obj["hello"]["world"].is<bool>());
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("JsonObjectConst::operator[]") {
|
||||
JsonDocument doc;
|
||||
doc["hello"] = "world";
|
||||
JsonObjectConst obj = doc.as<JsonObjectConst>();
|
||||
|
||||
REQUIRE(obj["hello"] == "world"); // issue #2019
|
||||
}
|
||||
|
Reference in New Issue
Block a user