Raniz85 / rxpect

A Rust library for fluently building expectations in tests
Apache License 2.0
1 stars 0 forks source link

Custom reason phrases #7

Open Raniz85 opened 1 year ago

Raniz85 commented 1 year ago

Add support for custom reason phrases to give more context to errors

Raniz85 commented 1 year ago

To get this in a standardized way without requiring all extensions to implement it it'll probably have to be a method on ExpectationBuilder.

This also means a lot less code duplication, especially since Rust doesn't support optional arguments