To run unit test for your rust applications
shell
cargo add unit-testing
Use the doc comment
rust
///
///
/// # Check if a callback is equals to expected value
///
/// * `description` The test description
/// * `callback` The callback to check
/// * `expected` The callback expected result
/// * `success` The success message
/// * `failure` The failure message
/// * `message` The panic message
///
///
/// use std::env::consts::OS;
/// use unit::Unit;
///
/// fn iswindows()-> bool
/// {
/// OS == "windows"
/// }
///
/// Unit::new()
/// .equals("Check if user use linux",iswindows(),false,"User use linux","User don't use linux","User must be use linux")
/// .end().expect("panic message");
///
```