qt5base-lts/tests/auto/testlib
Jason McDonald 52744f5053 Improve float selftest
Correct a bug in the test and use unique names for data rows.  The bug
was that the test assumed that QCOMPARE for float values 100001 and
100002 would fail, but it actually succeeds.  QCOMPARE for floats uses
qFuzzyCompare(), which succeeds if the numbers differ by no more than
1/100,000th of the smaller value.  Thus QCOMPARE(100001, 100002) passes,
while QCOMPARE(99998, 99999) fails.

Change-Id: Ia35d3126c2e3ebe91d64daa309048514a365d9fb
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-02-09 04:07:50 +01:00
..
qsignalspy Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
selftests Improve float selftest 2012-02-09 04:07:50 +01:00
testlib.pro Moved autotests in category 'testlib' into new directory structure 2011-09-12 08:36:15 +02:00