check there are no unexpected parser errors in tests
This commit is contained in:
parent
a0ba9b894f
commit
81f27a6a18
1 changed files with 2 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ TEST(NewSqlParser, statementList)
|
|||
|
||||
ASSERT_TRUE(program != nullptr);
|
||||
ASSERT_EQ(2, program->Count());
|
||||
ASSERT_EQ(0, parser.errorCount());
|
||||
}
|
||||
|
||||
TEST(NewSqlParser, missingSemi)
|
||||
|
|
@ -35,6 +36,7 @@ TEST(NewSqlParser, selectList)
|
|||
|
||||
ASSERT_TRUE(program != nullptr);
|
||||
ASSERT_EQ(1, program->Count());
|
||||
ASSERT_EQ(0, parser.errorCount());
|
||||
|
||||
SelectStatement &s = dynamic_cast<SelectStatement&>(program->Get(0));
|
||||
SelectList* sl = s.GetSelectList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue