use test_tools::exposed::*;
tests_impls!
{
#[ cfg( feature = "time_now" ) ]
#[ cfg( not( feature = "no_std" ) ) ]
fn basic()
{
use crate::TheModule;
let got = TheModule::now();
a_true!( got > 0 );
let got1 = TheModule::now();
let got2 = TheModule::ms::now();
a_true!( got2 - got2 <= 10 );
let got1 = TheModule::now();
let got2 = TheModule::ns::now();
a_true!( got2 / 1_000_000 - got1 <= 10 );
let got1 = TheModule::now();
let got2 = TheModule::s::now();
a_id!( got1 / 1000, got2 );
}
}
tests_index!
{
basic,
}