mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-01 09:27:54 +00:00
Added Equals matcher for NSString
This commit is contained in:
parent
78d95a0854
commit
db837a157f
2 changed files with 22 additions and 0 deletions
|
@ -45,6 +45,7 @@ OC_TEST_CASE( "OCTest/test2", "This is another test case" )
|
|||
using namespace Catch::Matchers;
|
||||
OC_TEST_CASE( "OCTest/matchers", "Matches work with OC types (NSString so far)" )
|
||||
{
|
||||
REQUIRE_THAT( @"This is a string", Equals( @"This is a string" ) );
|
||||
REQUIRE_THAT( @"This is a string", Contains( @"is a" ) );
|
||||
REQUIRE_THAT( @"This is a string", StartsWith( @"This" ) );
|
||||
REQUIRE_THAT( @"This is a string", EndsWith( @"string" ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue