[][src]Macro expected::expect

macro_rules! expect {
    ($cond:expr $(,)?) => { ... };
    ($cond:expr, $($arg:tt)+) => { ... };
}

Declare an expectation that the specified conditional expression is true.

Unlike assert! in the standard library, this macro does not panic when the condition is not satisfied. Instead, it will store the information that the expectation is disappointed to the thread-local storage and continue the subsequent line.