mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Added nested sections test
This commit is contained in:
parent
aae41833b0
commit
b3ef7fc0f2
@ -29,6 +29,23 @@ TEST_CASE( "succeeding/Misc/Sections", "random SECTION tests" )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_CASE( "succeeding/Misc/Sections/nested", "nested SECTION tests" )
|
||||||
|
{
|
||||||
|
int a = 1;
|
||||||
|
int b = 2;
|
||||||
|
|
||||||
|
SECTION( "s1", "doesn't equal" )
|
||||||
|
{
|
||||||
|
REQUIRE( a != b );
|
||||||
|
REQUIRE( b != a );
|
||||||
|
|
||||||
|
SECTION( "s2", "not equal" )
|
||||||
|
{
|
||||||
|
REQUIRE_FALSE( a == b);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TEST_CASE( "succeeding/Misc/stdout,stderr", "Sends stuff to stdout and stderr" )
|
TEST_CASE( "succeeding/Misc/stdout,stderr", "Sends stuff to stdout and stderr" )
|
||||||
{
|
{
|
||||||
std::cout << "Some information";
|
std::cout << "Some information";
|
||||||
|
Loading…
Reference in New Issue
Block a user