<commit_before>
use test_tools::*;

use super::TheModule;

//

fn basic_test()
{
  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();
  assert_eq!( got1, got2 );

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

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

}

//

test_suite!
{
  basic,<commit_msg>Update tests of module `time_tools`, use new test macroses<commit_after>
use test_tools::*;

use super::TheModule;

//

tests_impls!
{
  #[ 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();
    assert_eq!( got1, got2 );

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

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

//

tests_index!
{
  basic,
{'fraction_non_alphanumeric': 0.22975929978118162, 'fraction_numerical': 0.0350109409190372, 'mean_word_length': 2.5916230366492146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1431887', 'n_tokens_mistral': 570, 'n_tokens_neox': 537, 'n_words': 123}