mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
split unittest class into header and cpp file
This commit is contained in:
@@ -1,23 +1,10 @@
|
||||
#include "testsqlobjects.h"
|
||||
#include "../sqlitetypes.h"
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
using namespace sqlb;
|
||||
|
||||
class TestTable: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private slots:
|
||||
void sqlOutput();
|
||||
void autoincrement();
|
||||
void notnull();
|
||||
|
||||
void parseSQL();
|
||||
void parseSQLdefaultexpr();
|
||||
void parseSQLMultiPk();
|
||||
void parseSQLForeignKey();
|
||||
};
|
||||
|
||||
void TestTable::sqlOutput()
|
||||
{
|
||||
Table tt("testtable");
|
||||
@@ -163,4 +150,4 @@ void TestTable::parseSQLForeignKey()
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestTable)
|
||||
#include "testsqlobjects.moc"
|
||||
//#include "testsqlobjects.moc"
|
||||
|
||||
Reference in New Issue
Block a user