2
0
mirror of https://github.com/catchorg/Catch2 synced 2026-02-14 13:22:11 +00:00
This commit is contained in:
Phil Nash
2010-11-29 19:48:37 +00:00
19 changed files with 1114 additions and 8 deletions

View File

@@ -42,3 +42,22 @@ TEST_CASE( "succeeding/Tricky/complex lhs", "Where the LHS is not a simple value
EXPECT( a == 2 || b == 2 );
}
struct Opaque
{
int val;
bool operator ==( const Opaque& o )
{
return val == o.val;
}
};
TEST_CASE( "failing/Tricky/non streamable type", "A failing expression with a non streamable type is still captured" )
{
Opaque o1, o2;
o1.val = 7;
o2.val = 8;
CHECK( &o1 == &o2 );
CHECK( o1 == o2 );
}