test_panic
Utility for test cases with panic.
The author of this crate is not good at English.
Forgive me if the document is hard to read.
What is this?
Provides functions for test with panic. For the same purpose, the shoud_panic
attribute is provided in the Rust standard, but it is not so useful, hence we
created this crate.
Examples
Example with this crate.
Example with should_panic.
What's New
v0.3.0
must_useannotations are added atTestPanicResult.
v0.2.0
- Some document is polished.
TestPanicResultholds value on cases where no panic occurred.