wip
This commit is contained in:
parent
0da32b916c
commit
698ccab6ab
20 changed files with 265 additions and 37 deletions
|
|
@ -38,6 +38,17 @@ TEST(NewSqlLexer, QuotedIdent)
|
|||
ASSERT_EQ("Abc", token->getText());
|
||||
}
|
||||
|
||||
TEST(NewSqlLexer, AcceptNewLineInQuotedIdent)
|
||||
{
|
||||
std::string source = "\"Ab\nc\"";
|
||||
antlr4::ANTLRInputStream input(source);
|
||||
PgsqlLexer lexer(&input);
|
||||
|
||||
auto token = lexer.nextToken();
|
||||
ASSERT_EQ(PgsqlLexer::Ident, token->getType());
|
||||
ASSERT_EQ("Ab\nc", token->getText());
|
||||
}
|
||||
|
||||
|
||||
TEST(NewSqlParser, statementList)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue