Add a missing error handling check(a single number as JSON root).

This commit is contained in:
thebusytypist 2015-04-15 15:46:31 +08:00
parent 5ae48a0380
commit 0d28bb13c7

View File

@ -1051,6 +1051,7 @@ TEST(Reader, IterativeParsing_ErrorHandling) {
TESTERRORHANDLING("false, false", kParseErrorDocumentRootNotSingular, 5u);
TESTERRORHANDLING("nulL", kParseErrorValueInvalid, 3u);
TESTERRORHANDLING("null , null", kParseErrorDocumentRootNotSingular, 5u);
TESTERRORHANDLING("1a", kParseErrorDocumentRootNotSingular, 1u);
}
template<typename Encoding = UTF8<> >