We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd02ee commit c8c49daCopy full SHA for c8c49da
1 file changed
test/unit.cpp
@@ -2211,9 +2211,10 @@ TEST_CASE("element access")
2211
SECTION("null")
2212
{
2213
json j_nonobject(json::value_t::null);
2214
+ json j_nonobject2(json::value_t::null);
2215
const json j_const_nonobject(j_nonobject);
2216
CHECK_NOTHROW(j_nonobject["foo"]);
- CHECK_NOTHROW(j_nonobject[json::object_t::key_type("foo")]);
2217
+ CHECK_NOTHROW(j_nonobject2[json::object_t::key_type("foo")]);
2218
CHECK_THROWS_AS(j_const_nonobject["foo"], std::runtime_error);
2219
CHECK_THROWS_AS(j_const_nonobject[json::object_t::key_type("foo")], std::runtime_error);
2220
}
0 commit comments