Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions test/test_one.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MyFirstTest: public QObject
private:
bool myCondition()
{
return true;
return false;
}

private slots:
Expand All @@ -19,14 +19,13 @@ private slots:

void myFirstTest()
{
QVERIFY(true); // check that a condition is satisfied
QCOMPARE(2, 2); // compare two values
QVERIFY(false); // check that a condition is satisfied
QCOMPARE(1, 2); // compare two values
}

void mySecondTest()
{
QVERIFY(myCondition());
QVERIFY(1 != 2);
}

void cleanupTestCase()
Expand Down
2 changes: 1 addition & 1 deletion test/test_two.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ private slots:

void someTest()
{
QVERIFY2(3, "Some message");
QVERIFY2(0, "Some message");
}
};