🚨 fix warnings
This commit is contained in:
parent
b167096e82
commit
493d1e4467
@ -1000,8 +1000,6 @@ TEST_CASE("regression tests 2")
|
|||||||
{
|
{
|
||||||
nlohmann::json node;
|
nlohmann::json node;
|
||||||
node["test"] = "test\334\005";
|
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::ignore) == "{\"test\":\"test\\u0005\"}");
|
||||||
CHECK(node.dump(-1, ' ', false, nlohmann::json::error_handler_t::keep) == "{\"test\":\"test\334\005\"}");
|
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\"}");
|
CHECK(node.dump(-1, ' ', true, nlohmann::json::error_handler_t::keep) == "{\"test\":\"test\334\005\"}");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user