diff options
| author | 2014-12-14 08:24:26 -0500 | |
|---|---|---|
| committer | 2014-12-14 08:24:26 -0500 | |
| commit | 89214766d8e3e7b8dd749a1fa18a5b9727f5010d (patch) | |
| tree | 34ad5aa84ac9674ebb5b7a23b5a3377e8629ee33 /SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp | |
| parent | 7167ce41b61d2ba2cdb526777a4233eb84a3b66a (diff) | |
Imported Upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp')
| -rw-r--r-- | SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp b/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp index 5eb96a8..b34f11e 100644 --- a/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp +++ b/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp @@ -35,6 +35,7 @@ class ParserTest : public QObject void testInsertError(); void testExpr(); void testCommentBeginMultiline(); + void testBetween(); void initTestCase(); void cleanupTestCase(); }; @@ -338,6 +339,13 @@ void ParserTest::testCommentBeginMultiline() QVERIFY(tokens[0]->type == Token::COMMENT); } +void ParserTest::testBetween() +{ + QString sql = "SELECT * FROM test WHERE a BETWEEN 1 and 2"; + bool res = parser3->parse(sql); + QVERIFY(res); +} + void ParserTest::initTestCase() { initKeywords(); |
