Details
-
User Story
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
-
21
-
Foundation PM Prioritized
Description
I have tried to migrate from QCOMPARE to QCOMPARE_EQ}, and from {{QVERIFY(a op b) to QCOMPARE_op(a, b). This works fine in most cases, but there are several gotchas in the Floating-Point domain I encountered that I couldn't port because QCOMPARE_EQ always uses op==:
- comparing to NaN now uses IEEE semantics (so (Nan == NaN) == false). With QCOMPARE, NaNs compared equal
- I was hoping to find a replacement for QVERIFY(qFuzzeCompare()), maybe you can add a QFUZZY_COMPARE_op, too?
Attachments
Issue Links
- covers
-
QTBUG-2336 QCOMPARE to compare double with accuracy
-
- Open
-
- relates to
-
QTBUG-104108 As a user of QTestLib, I want to use QCOMPARE_op with C++20's spaceship operator <=>
-
- Closed
-
- resulted from
-
QTBUG-98873 As a user of QTestLib, I want to express inequalities the same way as QCOMPARE does for equality
-
- Closed
-
- mentioned in
-
Page Loading...