Remove should_panic unit tests #307
Labels
feature-request
This issue requires a new behavior in the product in order be resolved.
good first issue
This issue tracks work that may be a good starting point for a first-time contributor
Many unit tests are
should_panic
tests when they do not have to be.It is preferable to not use
should_panic
as this requires string matching against the panic output which can be finicky and does not allow for any type safety.An example here shows that we are calling
unwrap
just to match against the panic message. Instead, we shouldassert_eq!
against the error returned.The text was updated successfully, but these errors were encountered: