This repository has been archived by the owner on Dec 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Multiple output matchers #20
Labels
Comments
I'm also having some very early sketchy thoughts for generalizing the concept. Maybe tomorrow I can write them up. :-) |
Not sure about when this was first filed, but assert_cli now has I feel like that should cover most cases. Probably the main additions I can think of are regex and an fn. |
Huh, not sure why I didn't close this. We have exact and subset matches now. If #98 moves forward with using the predicates crate, we'll have untold opportunities for more. |
The responsibility for this has moved to assert_cmd / predicates-rs and more than handles the need for this, including an open API design for customization. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As commented in #16 (review), I think it might be nice to support multiple output matchers. I'm thinking of having either one exact output matcher, or a list of fuzzy matches.
There might also be a nice way of parameterizing the Assert struct so that only
Assert<NoOutputAssert>
has.prints_exactly()
, and bothAssert<NoOutputAssert>
andAssert<FuzzyOutputAssert>
have.prints()
.The text was updated successfully, but these errors were encountered: