| Crates.io | dust |
| lib.rs | dust |
| version | 0.1.0 |
| created_at | 2018-03-29 21:37:53.77445+00 |
| updated_at | 2018-03-29 21:37:53.77445+00 |
| description | Dust allows to build easy data driven tests in Rust |
| homepage | |
| repository | https://github.com/farodin91/dust |
| max_upload_size | |
| id | 58129 |
| size | 6,876 |
For example:
#![feature(plugin, decl_macro)]
#![plugin(dust)]
#[theory]
#[data(1,1)]
#[data(2,2)]
#[data(3,3)]
#[data(4,4)]
fn test_integer(a: i32, b: i32) {
assert!(a==b);
}
#[theory]
#[data("test", "test")]
#[data("test2", "test2")]
fn test_str(a: &str, b: &str) {
assert!(a==b);
}
#[test]
fn bla() {
assert!(1==1);
}