mirror of
https://github.com/nlohmann/json.git
synced 2025-07-21 04:22:05 +03:00
✅ add tests to improve coverage
This commit is contained in:
@ -101,6 +101,9 @@ TEST_CASE("JSON pointers")
|
||||
CHECK(j["/foo/1"_json_pointer] == j["foo"][1]);
|
||||
CHECK(j.contains(json::json_pointer("/foo/0")));
|
||||
CHECK(j.contains(json::json_pointer("/foo/1")));
|
||||
CHECK(not j.contains(json::json_pointer("/foo/3")));
|
||||
CHECK(not j.contains(json::json_pointer("/foo/+")));
|
||||
CHECK(not j.contains(json::json_pointer("/foo/1+2")));
|
||||
CHECK(not j.contains(json::json_pointer("/foo/-")));
|
||||
|
||||
// checked array access
|
||||
|
Reference in New Issue
Block a user