haf / expecto

A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
Apache License 2.0
663 stars 96 forks source link

Add `Expect.error` that not only matches for error but returns it for further processing #441

Closed xperiandri closed 1 year ago

xperiandri commented 1 year ago

When you want to expect Ok or Error you not only want to ensure in it but extract the value for further processing

bromanko commented 1 year ago

I think Expect.wantOk and Expect.wantError do what you are looking for.

xperiandri commented 1 year ago

Looks like that!

xperiandri commented 1 year ago

Thanks!