Macro test_tools::a_true
source · macro_rules! a_true { () => { ... }; ( $( $Rest : tt )* ) => { ... }; }
Expand description
Asserts that a boolean expression is true at runtime.
This will invoke the panic! macro if the provided expression cannot be evaluated to true at runtime.
§Basic use-case.
use diagnostics_tools::prelude::*;
a_true!( 1 == 1, "something wrong" );