mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 11:31:57 +01:00
Bugfix: add missing transition from finish state.
This commit is contained in:
@@ -900,6 +900,16 @@ TEST(Reader, IterativeParsing_ElementCounting) {
|
||||
EXPECT_EQ(1, handler.ElementCount);
|
||||
}
|
||||
|
||||
TEST(Reader, IterativeParsing_AfterFinishState) {
|
||||
StringStream json("{}, {}");
|
||||
Reader reader;
|
||||
BaseReaderHandler<> handler;
|
||||
|
||||
reader.IterativeParse<kParseIterativeFlag>(json, handler);
|
||||
|
||||
EXPECT_TRUE(reader.HasParseError());
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user