Macros and helper functions for file-based testing.
The crate's main feature is [testdata::files
], which automatically
finds test files and expands to multiple tests.
```rust use std::str; use testdata::{assert_snapshot, TestFile};
fn testfoo( #[glob = "tests/fixtures//*-in.txt"] input: &TestFile, #[glob = "tests/fixtures//*-out.txt"] output: &TestFile, ) { let s = input.rawread(); let s = str::fromutf8(&s).unwrap(); let result = s.touppercase(); assert_snapshot!(result, snapshot = output); } ```
More documents will be added in the later versions.