<!-- {{# generate.module_header{} #}} -->
# Module :: diagnostics_tools
[](https://github.com/emersion/stability-badges#experimental) [](https://github.com/Wandalen/wTools/actions/workflows/ModuleDiagnosticsToolsPush.yml) [](https://docs.rs/diagnostics_tools) [](https://gitpod.io/#RUN_PATH=.,SAMPLE_FILE=sample%2Frust%2Fdiagnostics_tools_trivial_sample%2Fsrc%2Fmain.rs,RUN_POSTFIX=--example%20diagnostics_tools_trivial_sample/https://github.com/Wandalen/wTools) [](https://discord.gg/m3YfbXpUUY)
Diagnostics tools.
### Basic use-case
<!-- {{# generate.module_sample{} #}} -->
```rust
#[ test ]
#[ should_panic ]
fn a_id_panic_test()
{
a_id!( 1, 2 );
/*
print :
...
thread 'a_id_panic_test' panicked at 'assertion failed: `(left == right)`
Diff < left / right > :
<1
>2
...
*/
}
```
<!-- zzz : qqq : add --> <!-- aaa : added -->
### To add to your project
```sh
cargo add diagnostics_tools
```
### Try out from the repository
```sh
git clone https://github.com/Wandalen/wTools
cd wTools
cd examples/diagnostics_tools_trivial
cargo run
```