Power Assert in Rust. Provides better assertion message like this:
``
$ cargo run --example normal
Running
target/debug/examples/normal`
thread '
To learn more, run the command again with --verbose. ```
Add this to your Cargo.toml
:
toml
[dependencies]
power-assert = "*"
and add this to your lib.rs
or main.rs
:
```rust
```
Now, you can use power_assert!()
and power_assert_eq!()
.
If you want to override builtin assert!()
and assert_eq!()
, change your lib.rs
or main.rs
as follows.
```rust
```