qt5base-lts/tests/auto/testlib
Edward Welbourne 3abfa4dfff QtTestLib: handle float16 the same as double and float
In QCOMPARE, handle NaNs and infinities the way tests want them
handled, rather than by strict IEEE rules. In particular, if a test
expects NaN, this lets it treat that just like any other expected
value, despite NaN != NaN as float16 values. Likewise, format
infinities and NaNs specially in toString() so that they're reported
consistently.

Enable the qfloat16 tests that depend on this QCOMPARE() behavior.
Refise the testlib selftest's float test to test qfloat16 the same way
it tests float and double (and format the test the same way).

This is a follow-up to 37f617c405.

Change-Id: I433256a09b1657e6725d68d07c5f80d805bf586a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-04-24 13:09:15 +00:00
..
outformat Test and document QTest::toHexRepresentation() 2018-11-08 15:22:21 +00:00
qabstractitemmodeltester Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
qsignalspy Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
selftests QtTestLib: handle float16 the same as double and float 2019-04-24 13:09:15 +00:00
testlib.pro Test and document QTest::toHexRepresentation() 2018-11-08 15:22:21 +00:00