- string matchers now work with NULLs
This commit is contained in:
Phil Nash
2013-04-23 07:59:56 +01:00
parent c887d1a167
commit 06548a5b61
2 changed files with 31 additions and 8 deletions

View File

@@ -235,10 +235,10 @@ TEST_CASE("./failing/matchers/Equals", "")
{
CHECK_THAT( testStringForMatching(), Equals( "something else" ) );
}
//TEST_CASE("string", "Equals with NULL")
//{
// REQUIRE_THAT("", Equals(NULL));
//}
TEST_CASE("string", "Equals with NULL")
{
REQUIRE_THAT("", Equals(NULL));
}
TEST_CASE("./succeeding/matchers/AllOf", "")
{
CHECK_THAT( testStringForMatching(), AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) );