Skip to content
New issue

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

Map matcher that inverts the submatcher. #1150

Closed
younata opened this issue Jun 26, 2024 · 0 comments · Fixed by #1151
Closed

Map matcher that inverts the submatcher. #1150

younata opened this issue Jun 26, 2024 · 0 comments · Fixed by #1151

Comments

@younata
Copy link
Member

younata commented Jun 26, 2024

We have the normal map matcher. But what about when you want to invert the submatcher, e.g. you want to check if the map'd value is not nil?

Be sure to also update the failure message, to at least insert a "not" in front of the message.

While we're at it, we should probably create an alias of map that makes the matcher argument a named argument. e.g. map(_:to:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant