summaryrefslogtreecommitdiffstats
path: root/examples/corelib/tools/customtypesending/message.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2019-09-23 16:25:26 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2019-10-29 16:46:54 +0100
commitd05ca484cfef805f3b442ad29e50d5f219049336 (patch)
tree8e3c3a14154d125e458701130ec98ec7f95224da /examples/corelib/tools/customtypesending/message.h
parentd157292f1632e58f06fa0728c3b606b1d1fe7885 (diff)
Make tst_QNumeric more systematic about checking float as well as double
Do this by templating the floating-point tests, which removes some existing duplication as well as avoiding new duplication. Did some renaming in the process. Added some tests of fuzzyCompare that come closer to its boundary. Increased number of tests from 69 to 97. Use std::numeric_limits to replace assorted hard-coded constants and old C-library boundary-value macros. It turns out MSVC's float conflates quiet and signaling NaN (although MinGW's doesn't); and WebAssembly's old fastcomp compiler conflates NaNs for both float and double; so XFAIL the test for distinct NaNs in those cases. Change-Id: I0a1c0d2f68f75d51b8cda9e3ddfe7fa9c190a3e2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Erik Verbruggen <erik.verbruggen@me.com>
Diffstat (limited to 'examples/corelib/tools/customtypesending/message.h')
0 files changed, 0 insertions, 0 deletions