-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a QCOMPARE_3WAY macro to test the C++20 spaceship operator <=>
Since the C++20 spaceship operator <=> appeared in the standard, qtest framework starts using it for tests. To make the way of usage the spaceship operator convenient and informative, the QCOMPARE_3WAY macro is added. - Add QCOMPARE_3WAY macro usage testcases. - Add threewaycompare test to setftests. [ChangeLog][QtTest] Added the QCOMPARE_3WAY macro. The macro tests the C++20 spaceship operator <=> Fixes: QTBUG-104108 Change-Id: Ia14b26c1d70625ac8c6cf2278d597b2a8cbe31d0 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
- Loading branch information
1 parent
1e714bb
commit 454f010
Showing
19 changed files
with
2,443 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ namespace QTest | |
LessThanOrEqual, | ||
GreaterThan, | ||
GreaterThanOrEqual, | ||
ThreeWayCompare, | ||
}; | ||
} | ||
|
||
|
Oops, something went wrong.