Fixed parsing when opening brace/bracket is missing

This commit is contained in:
Benoit Blanchon committed 2014-10-31 16:50:21 +01:00
1 parent 2b5b8fb4c5
commit 74b4544560
3 files changed
+13 -7

No files matched your search

+5 -1
View File
@@ -58,9 +58,13 @@ TEST_F(JsonParser_Array_Tests, EmptyArray) {
sizeMustBe(0);
}
TEST_F(JsonParser_Array_Tests, MissingOpeningBracket) {
whenInputIs("]");
parseMustFail();
}
TEST_F(JsonParser_Array_Tests, ArrayWithNoEnd) {
whenInputIs("[");
parseMustFail();
}