test4a 0.1.1

Testing library that provides some tools to apply "Advanced" Arrange-Act-Assert testing design.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Defines the trait `Assert`.

/// Defines an assertion.
///
/// See implementations provided with this library to know how to correctly
/// create your own asserts.
pub trait Assert {
    /// Tell whether the assertion has succeed.
    fn success(&self) -> bool;

    /// Return the error to print in case of failure.
    fn error_message(&self) -> String;
}