🔨 replaced lookup-tables by switches
This commit is contained in:
parent
4c821c9e9c
commit
50ee0a62f5
2 changed files with 921 additions and 395 deletions
1314
src/json.hpp
1314
src/json.hpp
File diff suppressed because it is too large
Load diff
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue