Skip to content

Commit

Permalink
Tests: Make sure all unit tests pass
Browse files Browse the repository at this point in the history
Two unit tests where failing because of missing spaces in the expected
result string.
  • Loading branch information
MKleusberg committed Jun 20, 2014
1 parent 980f42d commit 3da0d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/testsqlobjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void TestTable::parseSQL()
QVERIFY(tab.fields().at(1)->notnull());
QCOMPARE(tab.fields().at(1)->defaultValue(), QString("'xxxx'"));
QCOMPARE(tab.fields().at(1)->check(), QString(""));
QCOMPARE(tab.fields().at(2)->check(), QString("info=='x'"));
QCOMPARE(tab.fields().at(2)->check(), QString("info == 'x'"));
}

void TestTable::parseSQLdefaultexpr()
Expand All @@ -123,7 +123,7 @@ void TestTable::parseSQLdefaultexpr()
QVERIFY(tab.fields().at(2)->type() == "integer");

QCOMPARE(tab.fields().at(1)->defaultValue(), QString("('axa')"));
QCOMPARE(tab.fields().at(1)->check(), QString("dumpytext==\"aa\""));
QCOMPARE(tab.fields().at(1)->check(), QString("dumpytext == \"aa\""));
QCOMPARE(tab.fields().at(2)->defaultValue(), QString(""));
QCOMPARE(tab.fields().at(2)->check(), QString(""));

Expand Down

0 comments on commit 3da0d36

Please sign in to comment.