qt5base-lts/tests/auto/corelib/global/qnumeric
Edward Welbourne 7d74404325 Replace a misguided test with a valid one
The code had min and max of an integral type and tested min + min / 2,
which naturally overflowed, provoking a compiler warning.  The test
was meant to be testing min - min / 2; but min is even, so this is
just min / 2; and doubling that won't overflow (which is what the test
is about).  As it happens, min + min / 2 is in fact max - max / 2,
which *would* be a good value to test, since max is odd.  So add a
test for that and remove the broken test.

Change-Id: Iec34acbf0d5d7993d41ff844875dc10480b8eb1f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-03-27 13:43:21 +00:00
..
.gitignore Moving relevant tests to corelib/global 2011-08-30 13:17:21 +02:00
qnumeric.pro Merge remote-tracking branch 'origin/5.6' into dev 2015-09-25 14:02:04 +02:00
tst_qnumeric.cpp Replace a misguided test with a valid one 2019-03-27 13:43:21 +00:00