[go: up one dir, main page]

rstest 0.4.1

Rust fixture based test framework. It use procedural macro to implement fixtures and table based tests.
Documentation
1
2
3
4
5
6
7
8
9
use rstest::rstest_matrix;

#[rstest_matrix(
    expected => [4, 2*3-2],
    input => ["ciao", "buzz"],
)]
fn strlen_test(expected: usize, input: &str) {
    assert_eq!(expected, input.len());
}