diff --git a/tests/src/core/AutomatableModelTest.cpp b/tests/src/core/AutomatableModelTest.cpp index 6717da12d..116f95e60 100644 --- a/tests/src/core/AutomatableModelTest.cpp +++ b/tests/src/core/AutomatableModelTest.cpp @@ -38,17 +38,17 @@ private slots: { ComboBoxModel comboModel; AutomatableModel* amPtr = &comboModel; - QCOMPARE(nullptr, amPtr->dynamicCast()); // not a parent class + QVERIFY(nullptr == amPtr->dynamicCast()); // not a parent class QCOMPARE(&comboModel, amPtr->dynamicCast()); // parent class QCOMPARE(&comboModel, amPtr->dynamicCast()); // parent class QCOMPARE(&comboModel, amPtr->dynamicCast()); // same class IntModel intModel; IntModel* imPtr = &intModel; - QCOMPARE(nullptr, imPtr->dynamicCast()); // not a parent class + QVERIFY(nullptr == imPtr->dynamicCast()); // not a parent class QCOMPARE(&intModel, imPtr->dynamicCast()); // parent class QCOMPARE(&intModel, imPtr->dynamicCast()); // same class - QCOMPARE(nullptr, imPtr->dynamicCast()); // child class + QVERIFY(nullptr == imPtr->dynamicCast()); // child class } } AutomatableModelTests;