From a45d8edb6c2e234902202f55a0d6ee2f2ba60f5d Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sun, 18 Aug 2013 13:16:07 +0200 Subject: [PATCH] Fix QPointF::division autotest Change-Id: I567c1252b63aff4273bf15c0d52817f058ea0703 Reviewed-by: Olivier Goffart --- tests/auto/corelib/tools/qpointf/tst_qpointf.cpp | 4 ++-- 1 file 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)); } }