Add tests for comparing & stringifying volatile pointers

This commit is contained in:
Martin Hořeňovský
2025-08-08 00:02:33 +02:00
parent 9a3d68315b
commit 03c62cdf2e
18 changed files with 282 additions and 18 deletions

View File

@@ -3555,6 +3555,47 @@ Tricky.tests.cpp:<line number>: PASSED:
with expansion:
{ 1, 2 } == { 1, 2 }
-------------------------------------------------------------------------------
Comparing (and stringifying) volatile pointers works
-------------------------------------------------------------------------------
Misc.tests.cpp:<line number>
...............................................................................
Misc.tests.cpp:<line number>: PASSED:
REQUIRE_FALSE( ptr )
with expansion:
!0
Misc.tests.cpp:<line number>: PASSED:
REQUIRE( ptr == ptr )
with expansion:
0 == 0
Misc.tests.cpp:<line number>: PASSED:
REQUIRE_FALSE( ptr != ptr )
with expansion:
!(0 != 0)
Misc.tests.cpp:<line number>: PASSED:
REQUIRE_FALSE( ptr < ptr )
with expansion:
!(0 < 0)
Misc.tests.cpp:<line number>: PASSED:
REQUIRE( ptr <= ptr )
with expansion:
0 <= 0
Misc.tests.cpp:<line number>: PASSED:
REQUIRE_FALSE( ptr > ptr )
with expansion:
!(0 > 0)
Misc.tests.cpp:<line number>: PASSED:
REQUIRE( ptr >= ptr )
with expansion:
0 >= 0
-------------------------------------------------------------------------------
Comparing function pointers
-------------------------------------------------------------------------------
@@ -19226,6 +19267,6 @@ Misc.tests.cpp:<line number>
Misc.tests.cpp:<line number>: PASSED:
===============================================================================
test cases: 434 | 316 passed | 95 failed | 6 skipped | 17 failed as expected
assertions: 2292 | 2094 passed | 157 failed | 41 failed as expected
test cases: 435 | 317 passed | 95 failed | 6 skipped | 17 failed as expected
assertions: 2299 | 2101 passed | 157 failed | 41 failed as expected