Fix QPointF::division autotest
Change-Id: I567c1252b63aff4273bf15c0d52817f058ea0703 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
641d33273e
commit
a45d8edb6c
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user