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.
Provides functions for test with panic. It allows for somewhat more
flexible testing than using the Rust standard shoud_panic
.
Example with this crate.
```rust
fn test() { let result = test_panic(|| panic!("message."));
assert!(result.is_panic());
assert_eq!(result.message(), "message.");
} ```
Example with should_panic
.
```rust
fn test() { panic!("message."); } ```