Quick / Nimble

A Matcher Framework for Swift and Objective-C
https://quick.github.io/Nimble/documentation/nimble/
Apache License 2.0
4.79k stars 595 forks source link

Map matcher that inverts the submatcher. #1150

Open younata opened 2 weeks ago

younata commented 2 weeks ago

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:)