Skip to main content

fail

Macro fail 

Source
macro_rules! fail {
    () => { ... };
    ($msg:literal) => { ... };
}
Expand description

Force the test failure.

§Argument

  • msg - Optional message.

§Example

use utmt::fail;

fail!();
use utmt::fail;

fail!("A failed message");