Matchers macro uses Catch::Matchers namespace internally - so it doesn't have to be declared with "using" first
This commit is contained in:
1 parent
1c98fc98ef
commit
7035b55832
5 files changed
+13
-7
No files matched your search
@@ -247,8 +247,6 @@ inline const char* testStringForMatching()
|
||||
return "this string contains 'abc' as a substring";
|
||||
}
|
||||
|
||||
using namespace Catch::Matchers;
|
||||
|
||||
TEST_CASE("./succeeding/matchers", "")
|
||||
{
|
||||
REQUIRE_THAT( testStringForMatching(), Contains( "string" ) );
|
||||
@@ -272,3 +270,13 @@ TEST_CASE("./failing/matchers/EndsWith", "")
|
||||
{
|
||||
CHECK_THAT( testStringForMatching(), EndsWith( "this" ) );
|
||||
}
|
||||
|
||||
TEST_CASE("./failing/matchers/Equals", "")
|
||||
{
|
||||
CHECK_THAT( testStringForMatching(), Equals( "something else" ) );
|
||||
}
|
||||
|
||||
TEST_CASE("./succeeding/matchers/Equals", "")
|
||||
{
|
||||
CHECK_THAT( testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) );
|
||||
}
|
||||
Reference in new issue
Block a user