diff options
| author | 2015-02-22 14:06:29 -0500 | |
|---|---|---|
| committer | 2015-02-22 14:06:29 -0500 | |
| commit | 306d6d3ca9c9ad774d19135681a7f9805f77035f (patch) | |
| tree | a3e36ac2cc769162c30a1bcc33e126f7a4f4ccea /SQLiteStudio3/Tests | |
| parent | 016003905ca0e8e459e3dc33e786beda8ec92f45 (diff) | |
Imported Upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'SQLiteStudio3/Tests')
| -rw-r--r-- | SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp | 8 | ||||
| -rw-r--r-- | SQLiteStudio3/Tests/Tests.pro | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp b/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp index b34f11e..cd8c4b2 100644 --- a/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp +++ b/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp @@ -36,6 +36,7 @@ class ParserTest : public QObject void testExpr(); void testCommentBeginMultiline(); void testBetween(); + void testBigNum(); void initTestCase(); void cleanupTestCase(); }; @@ -346,6 +347,13 @@ void ParserTest::testBetween() QVERIFY(res); } +void ParserTest::testBigNum() +{ + QString sql = "SELECT ( col - 73016000000 ) FROM tab"; + bool res = parser3->parse(sql); + QVERIFY(res); +} + void ParserTest::initTestCase() { initKeywords(); diff --git a/SQLiteStudio3/Tests/Tests.pro b/SQLiteStudio3/Tests/Tests.pro index 60ade33..7995bf1 100644 --- a/SQLiteStudio3/Tests/Tests.pro +++ b/SQLiteStudio3/Tests/Tests.pro @@ -20,6 +20,9 @@ hash_tables.depends = test_utils db_ver_conv.subdir = DbVersionConverterTest db_ver_conv.depends = test_utils +dsv.subdir = DsvFormatsTest +dsv.depends = test_utils + SUBDIRS += \ test_utils \ completion_helper \ @@ -28,4 +31,4 @@ SUBDIRS += \ table_modifier \ hash_tables \ db_ver_conv \ - DsvFormatsTest + dsv |
