expectest 0.12.0

Crate provides matchers and matcher functions for unit testing.
Documentation
//! A module contains core types of this library.

pub use self::actual::{expect, ActualValue};
pub use self::join::Join;
pub use self::location::SourceLocation;
pub use self::result::{Failure, TestResult};

mod actual;
mod join;
mod location;
mod result;

/// A Matcher trait.
pub trait Matcher<A, E> {
    /// Returns a failure message.
    fn failure_message(&self, join: Join, actual: &A) -> String;

    /// Checks if an actual value matches an expected value.
    fn matches(&self, actual: &A) -> bool;
}