1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*! 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.*

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
```
#[test]
fn test() {
    let result = test_panic(|| panic!("message."));

    assert!(result.is_panic());
    assert_eq!(result.message(), "message");
}
```
*/

mod test_panic;
mod test_panic_result;

pub use crate::test_panic::test_panic;
pub use test_panic_result::TestPanicResult;