Crate wtest[][src]

Expand description

Tools for writing tests and runnint tests.

Sample

use wtest::test_suite;

//

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

//

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

//

test_suite!
{
  pass1,
  pass2,
}

Re-exports

pub extern crate paste;

Macros

Macro asserts that expression is ture. Unlike std::assert it is removed from a release build.

Macro asserts that two expressions are identical to each other. Unlike std::assert_eq it is removed from a release build.

Macro asserts that two expressions are identical to each other. Unlike std::assert_eq it is removed from a release build. Alias of debug_assert_id.

Macro asserts that two expressions are not identical to each other. Unlike std::assert_eq it is removed from a release build.

Macro asserts that two expressions are not identical to each other. Unlike std::assert_eq it is removed from a release build.

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.