qt5base-lts/tests/auto/corelib/kernel/qvariant
Thiago Macieira ac2bde9caf QVariant: make sure two floating points compare equal if they are equal
Not just fuzzily equal. The fuzzy comparison fails for infinities, since
the expression p1 - p2 where p1 = p2 = infinity is NaN. And NaN
comparisons are always false.

As a nice side-effect, we don't do the more expensive computation of a
multiplication if the two numbers really are equal.

Task-number: QTBUG-50036
Change-Id: I11f559ef75544c50b3f8ffff1420cec7c7273295
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-01-11 05:20:23 +00:00
..
stream Split the QGuiVariant test from the Core one. 2012-07-25 00:48:33 +02:00
.gitignore
qvariant.pro Add C++11 if available for QVariant autotest 2014-11-13 15:21:07 +01:00
qvariant.qrc Cleanup mess in public type ids. 2012-01-25 21:08:08 +01:00
tst_qvariant.cpp QVariant: make sure two floating points compare equal if they are equal 2016-01-11 05:20:23 +00:00