summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qpointf
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2013-08-18 13:16:07 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-19 14:24:28 +0200
commita45d8edb6c2e234902202f55a0d6ee2f2ba60f5d (patch)
tree992fa42aa52326c3b95a3b68b1db37a1a114c21e /tests/auto/corelib/tools/qpointf
parent641d33273e64f6c76db7fe4d1176d9ede09e43db (diff)
Fix QPointF::division autotest
Change-Id: I567c1252b63aff4273bf15c0d52817f058ea0703 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/corelib/tools/qpointf')
-rw-r--r--tests/auto/corelib/tools/qpointf/tst_qpointf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qpointf/tst_qpointf.cpp b/tests/auto/corelib/tools/qpointf/tst_qpointf.cpp
index fc79b40a18..52a6d3aa46 100644
--- a/tests/auto/corelib/tools/qpointf/tst_qpointf.cpp
+++ b/tests/auto/corelib/tools/qpointf/tst_qpointf.cpp
@@ -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));
}
}