dyntest 0.2.2

Dynamically create test cases.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use dyntest::{dyntest, DynTester};

dyntest!(test_should_panic, test_ignore);

fn test_should_panic(t: &mut DynTester) {
  t.test("panic", || panic!()).should_panic(true);
  t.test("aaa", || panic!("aaa")).should_panic("aaa");
}

fn test_ignore(t: &mut DynTester) {
  t.test("ignore", || {}).ignore(true);
  t.test("why", || {}).ignore("why not?");
}