faraday 0.1.0

Parameterized test case library for Rust ⚡️
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use faraday::parameterized;

fn add5<T: Into<u32>>(component: T) -> u32 {
    component.into() + 5
}

#[parameterized(
    zero = { 0, 5},
    one = { 1, 6 },
    two = { 2, 7 }
)]
fn test_add5(eh: u16, expected: u32) {
    assert_eq!(add5(eh), expected)
}