diagnostics_tools

Crates.iodiagnostics_tools
lib.rsdiagnostics_tools
version0.8.0
sourcesrc
created_at2022-05-25 19:22:16.108101
updated_at2024-05-11 22:35:29.860803
descriptionDiagnostics tools.
homepagehttps://github.com/Wandalen/wTools/tree/master/module/core/diagnostics_tools
repositoryhttps://github.com/Wandalen/wTools/tree/master/module/core/diagnostics_tools
max_upload_size
id593714
size58,693
Wandalen (Wandalen)

documentation

https://docs.rs/diagnostics_tools

README

Module :: diagnostics_tools

experimental rust-status docs.rs Open in Gitpod discord

Diagnostics tools.

Basic use-case

#[ 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
...
  */
}

To add to your project

cargo add diagnostics_tools

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd examples/diagnostics_tools_trivial
cargo run
Commit count: 0

cargo fmt