mirror of
https://github.com/nlohmann/json.git
synced 2026-02-15 01:32:13 +00:00
✅ add tests for diagnostics
This commit is contained in:
@@ -1181,8 +1181,8 @@ TEST_CASE("Unicode" * doctest::skip())
|
||||
CHECK_NOTHROW(json::json_pointer("/" + ptr));
|
||||
|
||||
// check escape/unescape roundtrip
|
||||
auto escaped = json::json_pointer::escape(ptr);
|
||||
json::json_pointer::unescape(escaped);
|
||||
auto escaped = nlohmann::detail::escape(ptr);
|
||||
nlohmann::detail::unescape(escaped);
|
||||
CHECK(escaped == ptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user