🔨 replaced lookup-tables by switches

This commit is contained in:
Niels Lohmann 2017-03-31 23:24:33 +02:00
parent 4c821c9e9c
commit 50ee0a62f5
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 921 additions and 395 deletions

File diff suppressed because it is too large Load diff

View file

@ -659,7 +659,7 @@ TEST_CASE("parser class")
// test case to make sure no comma preceeds the first key
CHECK_THROWS_AS(json::parser("{,\"key\": false}").parse(), json::parse_error);
CHECK_THROWS_WITH(json::parser("{,\"key\": false}").parse(),
"[json.exception.parse_error.101] parse error at 2: syntax error - unexpected ','");
"[json.exception.parse_error.101] parse error at 2: syntax error - unexpected ','; expected string literal");
// test case to make sure an object is properly closed
CHECK_THROWS_AS(json::parser("[{\"key\": false true]").parse(), json::parse_error);
CHECK_THROWS_WITH(json::parser("[{\"key\": false true]").parse(),