unit-testing 1.0.4

A unit testing library
Documentation
unit-testing-1.0.4 has been yanked.

Lib unit

To run unit test for your rust applications

Installation

cargo add unit-testing

Usage

Use the doc comment

///
///
/// # 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 is_windows()-> bool
/// {
///     OS == "windows"
/// }
///
/// Unit::new()
/// .equals("Check if user use linux",is_windows(),false,"User use linux","User don't use linux","User must be use linux")
/// .end().expect("panic message");
/// 

Unit testing output