yare 3.0.0

Lean parameterized test case library for Rust 🚀
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use yare::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)
}