Fix CI on windows

This commit is contained in:
Johannes Lorenz
2019-04-27 11:11:48 +02:00
parent 8d005e7565
commit 777da5e391

View File

@@ -38,17 +38,17 @@ private slots:
{
ComboBoxModel comboModel;
AutomatableModel* amPtr = &comboModel;
QCOMPARE(nullptr, amPtr->dynamicCast<FloatModel>()); // not a parent class
QVERIFY(nullptr == amPtr->dynamicCast<FloatModel>()); // not a parent class
QCOMPARE(&comboModel, amPtr->dynamicCast<AutomatableModel>()); // parent class
QCOMPARE(&comboModel, amPtr->dynamicCast<IntModel>()); // parent class
QCOMPARE(&comboModel, amPtr->dynamicCast<ComboBoxModel>()); // same class
IntModel intModel;
IntModel* imPtr = &intModel;
QCOMPARE(nullptr, imPtr->dynamicCast<FloatModel>()); // not a parent class
QVERIFY(nullptr == imPtr->dynamicCast<FloatModel>()); // not a parent class
QCOMPARE(&intModel, imPtr->dynamicCast<AutomatableModel>()); // parent class
QCOMPARE(&intModel, imPtr->dynamicCast<IntModel>()); // same class
QCOMPARE(nullptr, imPtr->dynamicCast<ComboBoxModel>()); // child class
QVERIFY(nullptr == imPtr->dynamicCast<ComboBoxModel>()); // child class
}
} AutomatableModelTests;