Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorthebusytypist <ounanding@gmail.com>2015-04-15 10:46:31 +0300
committerthebusytypist <ounanding@gmail.com>2015-04-15 10:46:31 +0300
commit0d28bb13c7833a8cdf5c946a9ab1622eed528492 (patch)
tree47ae54645902c0a1f1fd62f4b3d4230c2b9b2b01 /test
parent5ae48a0380b3377d43f1cb06d6061af796b5fa6d (diff)
Add a missing error handling check(a single number as JSON root).
Diffstat (limited to 'test')
-rw-r--r--test/unittest/readertest.cpp1
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<> >