summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcase.qdoc
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2021-08-05 11:24:43 +0200
committerNico Vertriest <nico.vertriest@qt.io>2021-08-06 12:04:28 +0200
commit7d7b484429f2a8a23b0d15e5fbfca18f6553b1bf (patch)
tree27aaee6f07673a5134c94f87ff3d1ec45e293efa /src/testlib/qtestcase.qdoc
parent726119c43156d9522b7f22a8bcc3521980e7d7a8 (diff)
Doc: Fix link error to qFuzzyIsNull()
Pick-to: 6.1 6.2 Change-Id: I17d890d4d61199dd74598ffa4c670ed65894047c Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/testlib/qtestcase.qdoc')
-rw-r--r--src/testlib/qtestcase.qdoc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/testlib/qtestcase.qdoc b/src/testlib/qtestcase.qdoc
index 9950418a5c..4534f3284f 100644
--- a/src/testlib/qtestcase.qdoc
+++ b/src/testlib/qtestcase.qdoc
@@ -123,10 +123,11 @@
\snippet code/src_qtestlib_qtestcase.cpp 2
When comparing floating-point types (\c float, \c double, and \c qfloat16),
- \l {qFuzzyCompare()} is used for finite values. If \l {qFuzzyIsNull()} is true for
- both values, they are also considered equal. Infinities match if they have
- the same sign, and any NaN as actual value matches with any NaN as expected
- value (even though NaN != NaN, even when they're identical).
+ \l {qFuzzyCompare()} is used for finite values. If \l {<QtGlobal>::}{qFuzzyIsNull()}
+ is true for both values, they are also considered equal. Infinities
+ match if they have the same sign, and any NaN as actual value matches
+ with any NaN as expected value (even though NaN != NaN, even when
+ they're identical).
When comparing QList, arrays and initializer lists of the value type
can be passed as expected value: