Hoxtfix: very easy bug

This commit is contained in:
Андреев Григорий 2024-09-01 17:13:20 +03:00
parent 0d2fefbfb0
commit 7f8bc8a93a
2 changed files with 1 additions and 4 deletions

View File

@ -11,9 +11,7 @@ namespace json {
constexpr int endOfFile = 999999;
struct bad_syntax: public std::exception {
inline bad_syntax() {
assert(false);
}
bad_syntax() = default;
};
struct ParserContext {

View File

@ -55,7 +55,6 @@ int main(){
B[0].asInteger();
B[1].asString();
test(A, B, true);
return 0;
test_obvious(parse_str_flawless("{ \"aaa\": true, \"2\":[true]}"));
test_obvious(parse_str_flawless("{ \"aa\": true, \"tttt\": [true, false]}"));
test_obvious(parse_str_flawless("[[[]]]"));