Macro test_tools::a_dbg_false
source · macro_rules! a_dbg_false { () => { ... }; ( $( $Rest : tt )* ) => { ... }; }
Expand description
Asserts that a boolean expression is false at runtime.
This will invoke the panic! macro if the provided expression cannot be evaluated to false at runtime. Like a_false!, this macro also has a second version, where a custom panic message can be provided.
§Basic use-case.
ⓘ
use diagnostics_tools::prelude::*;
a_dbg_true!( 1 == 2, "something wrong" );