add regression test #2824

This commit is contained in:
Niels Lohmann 2021-07-30 21:18:25 +02:00
parent c7822840eb
commit 8676f6745e
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -649,7 +649,7 @@ TEST_CASE("regression tests 2")
CHECK (!json::sax_parse("xyz", &sax));
CHECK(*sax_no_exception::error_string == "[json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: 'x'");
delete sax_no_exception::error_string;
delete sax_no_exception::error_string; // NOLINT(cppcoreguidelines-owning-memory)
}
SECTION("issue #2825 - Properly constrain the basic_json conversion operator")