mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Fixed a == 1 || b == 2 case
This commit is contained in:
@@ -24,11 +24,20 @@ namespace Catch
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE( "succeeding/Tricky", "Some tricky to parse tests" )
|
||||
TEST_CASE( "succeeding/Tricky/std::pair", "Parsing a std::pair" )
|
||||
{
|
||||
std::pair<int, int> aNicePair( 1, 2 );
|
||||
|
||||
// !TBD: would be nice if this could compile without the extra parentheses
|
||||
EXPECT( (std::pair<int, int>( 1, 2 )) == aNicePair );
|
||||
|
||||
}
|
||||
|
||||
TEST_CASE( "succeeding/Tricky/complex lhs", "Where the LHS is not a simple value" )
|
||||
{
|
||||
int a = 1;
|
||||
int b = 2;
|
||||
|
||||
// !TBD: This only captures part of the expression
|
||||
EXPECT( a == 2 || b == 2 );
|
||||
}
|
Reference in New Issue
Block a user