Do not QCOMPARE a bool against 1
commit8eae719cfb158492a5c5a9e2cd8195207abfa4ff
authorAlbert Astals Cid <albert.astals@canonical.com>
dateMon 4 Apr 2016, 10:12 (11 years ago)
parent14079aa
tests/libs/UbuntuGestures/tst_TouchRegistry.cpp+1−1
@@ -712,7 +712,7 @@ void tst_TouchRegistry::rejectingTouchfterItsEnd()
712712 touchRegistry->removeCandidateOwnerForTouch(0, &earlyCandidate);
713713
714714 QCOMPARE(lateCandidate.ownedTouches.count(), 1);
715− QCOMPARE(lateCandidate.ownedTouches.contains(0), 1);
715+ QVERIFY(lateCandidate.ownedTouches.contains(0));
716716
717717 // Check that there's no trace left of touch 0 as we no longer need to keep tabs on it.
718718 QVERIFY(!touchRegistry->findTouchInfo(0));