#[ allow( unused_imports ) ]
use super::*;
#[ allow( unused_imports ) ]
use TheModule::prelude::*;
tests_impls!
{
#[ test ]
fn a_true_test()
{
a_true!( 1 == 1 );
}
#[ test ]
fn a_id_test()
{
a_id!( "abc", "abc" );
}
#[ test ]
fn a_not_id_test()
{
a_not_id!( "abc", "abd" );
}
#[ test ]
fn a_dbg_true_test()
{
a_dbg_true!( 1 == 1 );
let mut x = 0;
let mut f1 = ||-> i32
{
x += 1;
x
};
a_dbg_true!( f1() == 1 );
#[ cfg( debug_assertions ) ]
assert_eq!( x, 1 );
#[ cfg( not( debug_assertions ) ) ]
assert_eq!( x, 0 );
}
#[ test ]
fn a_dbg_id_test()
{
a_dbg_id!( "abc", "abc" );
let mut x = 0;
let mut f1 = ||-> i32
{
x += 1;
x
};
a_dbg_id!( f1(), 1 );
#[ cfg( debug_assertions ) ]
assert_eq!( x, 1 );
#[ cfg( not( debug_assertions ) ) ]
assert_eq!( x, 0 );
}
#[ test ]
fn a_dbg_not_id_test()
{
}
}
tests_index!
{
a_true_test,
a_id_test,
a_not_id_test,
a_dbg_true_test,
a_dbg_id_test,
a_dbg_not_id_test,
}