
#[ allow( unused_imports ) ]
use super::*;

//

tests_impls!
{

  #[ cfg( any( feature = "chrono", feature = "time_chrono" ) ) ]
  fn basic()
  {
    use TheModule::*;

    // test.case( "time::now" );
    let got = time::now();
    a_true!( got > 0 );

    // test.case( "time::ms::now" );
    let got1 = time::now();
    let got2 = time::ms::now();
    a_true!( got2 - got2 <= 10 );

    // // test.case( "time::ns::now" );
    let got1 = time::now();
    let got2 = time::ns::now();
    a_true!( got2 / 1_000_000 - got1 <= 10 );
    // zzz : use equal!

    // test.case( "time::s::now" );
    let got1 = time::now();
    let got2 = time::s::now();
    a_id!( got1 / 1000, got2 );
  }

}

//

tests_index!
{
  basic,
}


#[ allow( unused_imports ) ]
use super::*;

//

tests_impls!
{

  #[ cfg( any( feature = "chrono", feature = "time_chrono" ) ) ]
  #[ test ]
  fn basic()
  {
    use TheModule::*;

    // test.case( "time::now" );
    let got = time::now();
    assert!( got > 0 );

    // test.case( "time::ms::now" );
    let got1 = time::now();
    let got2 = time::ms::now();
    a_id!( got1, got2 );

    // // test.case( "time::ns::now" );
    // let got1 = time::now();
    // let got2 = time::ns::now();
    // a_id!( got1, got2 / 1000000 );
    // zzz : use equal!

    // test.case( "time::s::now" );
    let got1 = time::now();
    let got2 = time::s::now();
    a_id!( got1 / 1000, got2 );
  }

}

//

tests_index!
{
  basic,
}

--- 
+++ 
@@ -8,23 +8,24 @@
 {
 
   #[ cfg( any( feature = "chrono", feature = "time_chrono" ) ) ]
+  #[ test ]
   fn basic()
   {
     use TheModule::*;
 
     // test.case( "time::now" );
     let got = time::now();
-    a_true!( got > 0 );
+    assert!( got > 0 );
 
     // test.case( "time::ms::now" );
     let got1 = time::now();
     let got2 = time::ms::now();
-    a_true!( got2 - got2 <= 10 );
+    a_id!( got1, got2 );
 
     // // test.case( "time::ns::now" );
-    let got1 = time::now();
-    let got2 = time::ns::now();
-    a_true!( got2 / 1_000_000 - got1 <= 10 );
+    // let got1 = time::now();
+    // let got2 = time::ns::now();
+    // a_id!( got1, got2 / 1000000 );
     // zzz : use equal!
 
     // test.case( "time::s::now" );
Fix tests of module `time_tools`, add time delta to test checks
