Fix SqlLexer test

(cherry picked from commit da45929b12)
This commit is contained in:
eelke 2018-09-09 14:20:30 +00:00 committed by Eelke Klein
parent 425f4eccbe
commit 5a2e28b6d9

View file

@ -53,7 +53,7 @@ TEST(SqlLexer, lexer_comma_handling)
lexer.nextBasicToken(startpos, length, tokentype, out); lexer.nextBasicToken(startpos, length, tokentype, out);
ASSERT_THAT(startpos, Eq(3)); ASSERT_THAT(startpos, Eq(3));
ASSERT_THAT(length, Eq(1)); ASSERT_THAT(length, Eq(1));
ASSERT_THAT(tokentype, Eq(BasicTokenType::Self)); ASSERT_THAT(tokentype, Eq(BasicTokenType::Comma));
ASSERT_THAT(out, Eq(QString(","))); ASSERT_THAT(out, Eq(QString(",")));
lexer.nextBasicToken(startpos, length, tokentype, out); lexer.nextBasicToken(startpos, length, tokentype, out);