🚨 fix warnings

This commit is contained in:
Niels Lohmann
2024-12-22 17:35:15 +01:00
parent b167096e82
commit 493d1e4467

View File

@@ -1000,8 +1000,6 @@ TEST_CASE("regression tests 2")
{
nlohmann::json node;
node["test"] = "test\334\005";
auto x = node.dump(-1, ' ', false, nlohmann::json::error_handler_t::ignore);
CHECK(node.dump(-1, ' ', false, nlohmann::json::error_handler_t::ignore) == "{\"test\":\"test\\u0005\"}");
CHECK(node.dump(-1, ' ', false, nlohmann::json::error_handler_t::keep) == "{\"test\":\"test\334\005\"}");
CHECK(node.dump(-1, ' ', true, nlohmann::json::error_handler_t::keep) == "{\"test\":\"test\334\005\"}");