Data-Test

Rust data-test (aka table-test) helpers

Build Status GitHub Crates.io

Getting Started

Add to your test dependencies: toml [dev-dependencies] data-test = "^0.1"

Example of usage: ```rust

[cfg(test)]

mod tests { use datatest::datatest;

#[test]
fn it_works() {
    assert_eq!(2 + 2, 4);
}

data_test! {
    fn is_equal(input, expected) => {
        assert_eq!(input, expected);
    }
    - a (1, 1)
    - b (2, 2)
    - c (3, 3)
    - d (4, 4)
    - e (5, 5)
    - f ("hello world", "hello world")
}

} // cargo test output: // test tests::itworks ... ok // test tests::isequal::a ... ok // test tests::isequal::b ... ok // test tests::isequal::c ... ok // test tests::isequal::d ... ok // test tests::isequal::e ... ok // test tests::is_equal::f ... ok ```