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,
}

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,
}

--- 
+++ 
@@ -4,23 +4,27 @@
 
 //
 
-fn basic_test()
+tests_impls!
 {
-  // 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 ]
+  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 );
 
+  }
 }
 
 //
 
-test_suite!
+tests_index!
 {
   basic,
 }
Update tests of module `iter_tools`, use new test macroses
