diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-05 18:37:23 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-05 18:37:23 +0100 |
| commit | 9d0a930d811b825b39ee16614e645b6934130cc1 (patch) | |
| tree | 9434a7bd17585fe227a9ce7b434345e3beed22bc /src | |
| parent | e1e7337239066677dd6bc82b826e861cf6710836 (diff) | |
| download | sylt-9d0a930d811b825b39ee16614e645b6934130cc1.tar.gz | |
parse wanted errors from test files
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -914,6 +914,16 @@ mod tests { crate::run_file(&file, true, Vec::new()).unwrap(); } }; + ($fn:ident, $path:literal, $errs:tt) => { + #[test] + fn $fn() { + use crate::error::ErrorKind; + + let file = std::path::Path::new($path); + let res = crate::run_file(&file, true, Vec::new()); + $crate::assert_errs!(res, $errs); + } + }; } sylt_macro::find_tests!(); |
