Crate wtest_basic[][src]

Expand description

Tools for writing and runnint tests.

Sample

use wtest_basic::*;

//

fn _pass1()
{
  assert_eq!( true, true );
}

//

fn _pass2()
{
  assert_eq!( 1, 1 );
}

//

test_suite!
{
  pass1,
  pass2,
}

Re-exports

pub extern crate paste;

Macros

Macro to define test suite. This macro encourages refactoring the code of the test in the most readable way, gathering a list of all test routines at the end of the test file.

Functions

Pass only if callback fails either returning error or panicing.