expectest 0.3.1

Crate provides matchers and matcher functions for unit testing.
Documentation

//! Crate provides matchers and matcher functions for unit testing.

extern crate num;

/// A macro used to simplify usage of this library.
///
/// You can also use `expect` function instead.
#[macro_export]
macro_rules! expect {
    ($e: expr) => (
        $crate::core::expect($e).location($crate::core::SourceLocation::new(file!(), line!()))
    );
}

pub mod prelude {
    //! A module contains reexport of all useful types and functions.

    pub use core::{expect, ActualValue, Matcher};
    pub use matchers::{be_equal_to, be_less_than, be_less_or_equal_to, be_greater_than,
                       be_greater_or_equal_to, be_true, be_false, be_some, BeSome, be_none, be_ok,
                       BeOk, be_err, BeErr, be_close_to, BeCloseTo, be_empty, have_count};
}

pub mod core;
pub mod matchers;
pub mod traits;
pub mod utils;