diff options
| author | Phil Nash | 2010-11-29 19:48:37 +0000 |
|---|---|---|
| committer | Phil Nash | 2010-11-29 19:48:37 +0000 |
| commit | ceab2a63bde9cfc28a75bfcbe8a4515ae050cba2 (patch) | |
| tree | 088a95c18008ec61120b13bb7e26302717f81a86 /Test/TrickyTests.cpp | |
| parent | e6b2b0e656d52f95a9fd292199f9eefb59eae585 (diff) | |
| parent | 5f43a43662c8b9feca25aeccc79d1c7db664c9a0 (diff) | |
| download | catch3-ceab2a63bde9cfc28a75bfcbe8a4515ae050cba2.tar.gz | |
merge
Diffstat (limited to 'Test/TrickyTests.cpp')
| -rw-r--r-- | Test/TrickyTests.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Test/TrickyTests.cpp b/Test/TrickyTests.cpp index 3b74675d..e12aa9af 100644 --- a/Test/TrickyTests.cpp +++ b/Test/TrickyTests.cpp @@ -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 ); +} |