We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contain
I can write the following, very convenient, assertion in Swift:
// Swift expect(["whale", "dolphin", "starfish"]).to(contain("dolphin", "starfish"))
But in Objective-C, I can't pass multiple arguments to contain, so I have to write two lines:
// Objective-C expect(@[@"whale", @"dolphin", @"starfish"]).to(contain(@"dolphin")); expect(@[@"whale", @"dolphin", @"starfish"]).to(contain(@"starfish"));
It'd be nice if Objective-C contain supported multiple arguments somehow (the same goes for beginWith and endWith).
beginWith
endWith
The text was updated successfully, but these errors were encountered:
For any of these matchers supporting multiple arguments, they need to be converted into a macro that implicitly wraps the arguments into arrays.
Sorry, something went wrong.
No branches or pull requests
I can write the following, very convenient, assertion in Swift:
But in Objective-C, I can't pass multiple arguments to
contain
, so I have to write two lines:It'd be nice if Objective-C
contain
supported multiple arguments somehow (the same goes forbeginWith
andendWith
).The text was updated successfully, but these errors were encountered: