From bfb237d19a5319bfa020ad0cefaff72e8d94a9be Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Wed, 13 Sep 2023 17:21:34 +0200 Subject: TestLib: provide helper functions to test relational operators The patch provides two sets of functions: * functions to perform compile-time check for all cv-ref combinations * functions that actually verify the comparison results for all cv-ref combinations. For now it does not test operator<=>(), even if compiled with C++20, because Qt types do not yet implement it. The patch uses the new helper functions to improve testing of date and time classes, because they already provide a full set of relational operators. Change-Id: I8bd869c489543719ea856d6609cac53cbd4dc122 Reviewed-by: Marc Mutz Reviewed-by: Edward Welbourne --- tests/auto/corelib/time/qdate/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/auto/corelib/time/qdate/CMakeLists.txt') diff --git a/tests/auto/corelib/time/qdate/CMakeLists.txt b/tests/auto/corelib/time/qdate/CMakeLists.txt index 4dff2a6639..4d0f04a967 100644 --- a/tests/auto/corelib/time/qdate/CMakeLists.txt +++ b/tests/auto/corelib/time/qdate/CMakeLists.txt @@ -19,4 +19,5 @@ qt_internal_add_test(tst_qdate QT_NO_KEYWORDS LIBRARIES Qt::CorePrivate + Qt::TestPrivate ) -- cgit v1.2.3