Test: Enable tst_QWMatrix::operator_star_qwmatrix

Expecting results were not correct. The test is passing.

Task-number: QTBUG-22362

Change-Id: Ie41c262019f76aace9062d7897d7934dc7437c3a
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
Caroline Chao 2012-09-26 10:16:59 +02:00 committed by The Qt Project
parent 47d635b011
commit 67391eedfe

View File

@ -299,22 +299,17 @@ void tst_QWMatrix::mapRect()
void tst_QWMatrix::operator_star_qwmatrix()
{
#if 0
// Left out until the matrix multiply operator behaves properly..
QMatrix m1( 2, 3, 4, 5, 6, 7 );
QMatrix m2( 3, 4, 5, 6, 7, 8 );
QMatrix result1x2( 21, 26, 37, 46, 44, 75 );
QMatrix result2x1( 22, 29, 34, 45, 53, 80);
QMatrix result1x2( 21, 26, 37, 46, 60, 74 );
QMatrix result2x1( 22, 29, 34, 45, 52, 68);
QMatrix product12 = m1*m2;
QMatrix product21 = m2*m1;
QVERIFY( product12==result1x2 );
QVERIFY( product21==result2x1 );
#else
QSKIP( "Not tested with Qt versions since the operator is broken.." );
#endif
}