use super::TheModule;
use TheModule::*;
use test_tools::*;

//

fn basic_test()
{
  // test.case( "basic" );
  let src = vec![ 1, 2, 3 ];
  let exp = ( vec![ 2, 3, 4 ], vec![ 0, 1, 2 ] );
  let got : ( Vec< _ >, Vec< _ > ) = src.iter().map( | e |
  {(
    e + 1,
    e - 1,
  )}).multiunzip();
  assert_eq!( got, exp );

}

//

test_suite!
{
  basic,
}

use super::TheModule;
use TheModule::*;
use test_tools::*;

//

tests_impls!
{
  #[ test ]
  fn basic()
  {
    // test.case( "basic" );
    let src = vec![ 1, 2, 3 ];
    let exp = ( vec![ 2, 3, 4 ], vec![ 0, 1, 2 ] );
    let got : ( Vec< _ >, Vec< _ > ) = src.iter().map( | e |
    {(
      e + 1,
      e - 1,
    )}).multiunzip();
    assert_eq!( got, exp );

  }
}

//

tests_index!
{
  basic,
}

Update tests of module `iter_tools`, use new test macroses
Update tests of module `iter_tools`, use new test macroses
