Added equality/inequality tests for vector and region.

This commit is contained in:
David Williams
2011-09-24 11:02:01 +01:00
parent ddc54e0862
commit 7bbdb1a29d
9 changed files with 134 additions and 0 deletions

View File

@ -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)