Hoxtfix: very easy bug
This commit is contained in:
parent
0d2fefbfb0
commit
7f8bc8a93a
@ -11,9 +11,7 @@ namespace json {
|
|||||||
constexpr int endOfFile = 999999;
|
constexpr int endOfFile = 999999;
|
||||||
|
|
||||||
struct bad_syntax: public std::exception {
|
struct bad_syntax: public std::exception {
|
||||||
inline bad_syntax() {
|
bad_syntax() = default;
|
||||||
assert(false);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ParserContext {
|
struct ParserContext {
|
||||||
|
@ -55,7 +55,6 @@ int main(){
|
|||||||
B[0].asInteger();
|
B[0].asInteger();
|
||||||
B[1].asString();
|
B[1].asString();
|
||||||
test(A, B, true);
|
test(A, B, true);
|
||||||
return 0;
|
|
||||||
test_obvious(parse_str_flawless("{ \"aaa\": true, \"2\":[true]}"));
|
test_obvious(parse_str_flawless("{ \"aaa\": true, \"2\":[true]}"));
|
||||||
test_obvious(parse_str_flawless("{ \"aa\": true, \"tttt\": [true, false]}"));
|
test_obvious(parse_str_flawless("{ \"aa\": true, \"tttt\": [true, false]}"));
|
||||||
test_obvious(parse_str_flawless("[[[]]]"));
|
test_obvious(parse_str_flawless("[[[]]]"));
|
||||||
|
Loading…
Reference in New Issue
Block a user