File tree Expand file tree Collapse file tree 3 files changed +19
-15
lines changed
Expand file tree Collapse file tree 3 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ CONFIG += warn_on
1212# create a unittest option
1313CONFIG (unittest) {
1414 CONFIG += qtestlib
15+ HEADERS += tests/testsqlobjects.h
1516 SOURCES += tests/testsqlobjects.cpp
1617} else {
1718 SOURCES += main.cpp
Original file line number Diff line number Diff line change 1+ #include " testsqlobjects.h"
12#include " ../sqlitetypes.h"
23
34#include < QtTest/QtTest>
45
56using namespace sqlb ;
67
7- class TestTable : public QObject
8- {
9- Q_OBJECT
10- private slots:
11- void sqlOutput ();
12- void autoincrement ();
13- void notnull ();
14-
15- void parseSQL ();
16- void parseSQLdefaultexpr ();
17- void parseSQLMultiPk ();
18- void parseSQLForeignKey ();
19- };
20-
218void TestTable::sqlOutput ()
229{
2310 Table tt (" testtable" );
@@ -163,4 +150,4 @@ void TestTable::parseSQLForeignKey()
163150}
164151
165152QTEST_MAIN (TestTable)
166- #include " testsqlobjects.moc"
153+ // #include "testsqlobjects.moc"
Original file line number Diff line number Diff line change 1+ #include < QObject>
2+
3+ class TestTable : public QObject
4+ {
5+ Q_OBJECT
6+ private slots:
7+ void sqlOutput ();
8+ void autoincrement ();
9+ void notnull ();
10+
11+ void parseSQL ();
12+ void parseSQLdefaultexpr ();
13+ void parseSQLMultiPk ();
14+ void parseSQLForeignKey ();
15+ };
16+
You can’t perform that action at this time.
0 commit comments