summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qdatetimeparser.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-11-21 14:36:08 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2019-04-24 13:09:15 +0000
commit3abfa4dfff08d9d2ab9aeb474656b36076a48b3b (patch)
tree89df29166967da7ea0b4c28cfab69297516cfffd /src/corelib/tools/qdatetimeparser.cpp
parent934000c11afe8b03c81a8f52f3a51be6615087c6 (diff)
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 37f617c405a. Change-Id: I433256a09b1657e6725d68d07c5f80d805bf586a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qdatetimeparser.cpp')
0 files changed, 0 insertions, 0 deletions