Fix QPointF::division autotest

Change-Id: I567c1252b63aff4273bf15c0d52817f058ea0703
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Giuseppe D'Angelo 2013-08-18 13:16:07 +02:00 committed by The Qt Project
parent 641d33273e
commit a45d8edb6c

View File

@ -284,12 +284,12 @@ void tst_QPointF::division()
{
QPointF p(1e-14, 1e-14);
p = p / sqrt(dot(p, p));
qFuzzyCompare(dot(p, p), 1);
QCOMPARE(dot(p, p), qreal(1.0));
}
{
QPointF p(1e-14, 1e-14);
p /= sqrt(dot(p, p));
qFuzzyCompare(dot(p, p), 1);
QCOMPARE(dot(p, p), qreal(1.0));
}
}