-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the
tuple!
macro with an implementation of Matcher
for tu…
…ples. This means that one can just put a bunch of matchers into a tuple and the result will itself be a matcher against corresponding tuples: ``` let value = (1, 2); verify_that!(value, (eq(1), eq(2))) ``` There is no need for a separate macro for this, since one can implement `Matcher` for a tuple of matchers directly. This is a breaking change, since it eliminates the `tuple!` macro. To port existing code, one just removes the call to `tuple!`.
- Loading branch information
Showing
6 changed files
with
115 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.