Added equality/inequality tests for vector and region.
This commit is contained in:
@ -43,4 +43,12 @@ void TestVector::testDotProduct()
|
||||
QCOMPARE(vecxy.dot(vecz), int8_t(0)); //QCOMPARE is very strict on the types matching
|
||||
}
|
||||
|
||||
void TestVector::testEquality()
|
||||
{
|
||||
Vector3DInt8 vecxy(3, 4, 0);
|
||||
Vector3DInt8 vecz(0, 0, 1);
|
||||
|
||||
QCOMPARE(vecxy != vecz, true);
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestVector)
|
||||
|
Reference in New Issue
Block a user