mirror of
https://github.com/nlohmann/json.git
synced 2026-02-24 20:36:27 +00:00
🚨 fix warning
This commit is contained in:
@@ -39,7 +39,12 @@ TEST_CASE("Better diagnostics")
|
||||
{
|
||||
json j;
|
||||
j["object"]["object"] = true;
|
||||
|
||||
#if defined(JSON_HAS_CPP_17)
|
||||
CHECK_THROWS_WITH_AS(j["object"].at("not_found"), "[json.exception.out_of_range.403] (/object) key not found (key is an rvalue and cannot be shown)", json::out_of_range);
|
||||
#else
|
||||
CHECK_THROWS_WITH_AS(j["object"].at("not_found"), "[json.exception.out_of_range.403] (/object) key 'not_found' not found", json::out_of_range);
|
||||
#endif
|
||||
}
|
||||
|
||||
SECTION("array index out of range")
|
||||
|
||||
Reference in New Issue
Block a user