diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-20 05:52:41 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-20 05:52:41 (GMT) |
commit | 0af5e650d2e4a776c4c60f6ac3819605054663df (patch) | |
tree | 207379f016a37cd631dac5200defa84e9495bcfd /tests/auto/qquaternion | |
parent | 919b723088b8617b202b92d80b8d0983e4fd9500 (diff) | |
download | Qt-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.cpp | 9 |
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() { |