mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-05 06:29:32 +01:00
Fixes toString() for function pointers and added support for member function pointers.
- thanks to Malcolm Noyes for supplying sample code on which the solution here was based
This commit is contained in:
@@ -6637,7 +6637,20 @@ there"
|
||||
a == &foo
|
||||
</Original>
|
||||
<Expanded>
|
||||
1 == 1
|
||||
0x<hex digits> == 0x<hex digits>
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="Comparing member function pointers">
|
||||
<Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp" >
|
||||
<Original>
|
||||
m == &S::f
|
||||
</Original>
|
||||
<Expanded>
|
||||
0x<hex digits>
|
||||
==
|
||||
0x<hex digits>
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
@@ -7405,7 +7418,7 @@ there"
|
||||
</Section>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<OverallResults successes="584" failures="110"/>
|
||||
<OverallResults successes="585" failures="110"/>
|
||||
</Group>
|
||||
<OverallResults successes="584" failures="110"/>
|
||||
<OverallResults successes="585" failures="110"/>
|
||||
</Catch>
|
||||
|
||||
Reference in New Issue
Block a user