summaryrefslogtreecommitdiffstats
path: root/tests/auto/qquaternion
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-20 05:52:41 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-20 05:52:41 (GMT)
commit0af5e650d2e4a776c4c60f6ac3819605054663df (patch)
tree207379f016a37cd631dac5200defa84e9495bcfd /tests/auto/qquaternion
parent919b723088b8617b202b92d80b8d0983e4fd9500 (diff)
downloadQt-0af5e650d2e4a776c4c60f6ac3819605054663df.zip
Qt-0af5e650d2e4a776c4c60f6ac3819605054663df.tar.gz
Qt-0af5e650d2e4a776c4c60f6ac3819605054663df.tar.bz2
Add some more tests for QQuaternion multiplication
Reviewed-by: trustme
Diffstat (limited to 'tests/auto/qquaternion')
-rw-r--r--tests/auto/qquaternion/tst_qquaternion.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qquaternion/tst_qquaternion.cpp b/tests/auto/qquaternion/tst_qquaternion.cpp
index ba546f1..1fb2d6b 100644
--- a/tests/auto/qquaternion/tst_qquaternion.cpp
+++ b/tests/auto/qquaternion/tst_qquaternion.cpp
@@ -466,6 +466,15 @@ void tst_QQuaternion::multiply_data()
QTest::newRow("complex")
<< (qreal)1.0f << (qreal)2.0f << (qreal)3.0f << (qreal)7.0f
<< (qreal)4.0f << (qreal)5.0f << (qreal)6.0f << (qreal)8.0f;
+
+ for (qreal w = -1.0f; w <= 1.0f; w += 0.5f)
+ for (qreal x = -1.0f; x <= 1.0f; x += 0.5f)
+ for (qreal y = -1.0f; y <= 1.0f; y += 0.5f)
+ for (qreal z = -1.0f; z <= 1.0f; z += 0.5f) {
+ QTest::newRow("exhaustive")
+ << x << y << z << w
+ << z << w << y << x;
+ }
}
void tst_QQuaternion::multiply()
{