sif_macro 0.1.0

Part of Sif: attribute macro for parameterized tests
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[macro_use]
extern crate sif_macro;

enum Color {
    Red,
    Yellow,
    Blue,
}

#[parameterized]
#[case(Color::Red)]
#[case(Color::Yellow)]
#[case(Color::Blue)]
#[case(Color::Red)]
fn my_test(v: Color) {}

fn main() {}