diff options
author | thebusytypist <ounanding@gmail.com> | 2015-04-15 10:46:31 +0300 |
---|---|---|
committer | thebusytypist <ounanding@gmail.com> | 2015-04-15 10:46:31 +0300 |
commit | 0d28bb13c7833a8cdf5c946a9ab1622eed528492 (patch) | |
tree | 47ae54645902c0a1f1fd62f4b3d4230c2b9b2b01 /test | |
parent | 5ae48a0380b3377d43f1cb06d6061af796b5fa6d (diff) |
Add a missing error handling check(a single number as JSON root).
Diffstat (limited to 'test')
-rw-r--r-- | test/unittest/readertest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unittest/readertest.cpp b/test/unittest/readertest.cpp index 942f8d6b..11f3e785 100644 --- a/test/unittest/readertest.cpp +++ b/test/unittest/readertest.cpp @@ -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<> >
|