SECTION("issue #2824 - encoding of json::exception::what()")
SECTION("issue #2824 - encoding of json::exception::what()")
...
@@ -60,7 +135,18 @@ TEST_CASE("Tests with disabled exceptions")
...
@@ -60,7 +135,18 @@ TEST_CASE("Tests with disabled exceptions")
sax_no_exceptionsax(j);
sax_no_exceptionsax(j);
CHECK(!json::sax_parse("xyz",&sax));
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'");
//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'");