diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-05 19:47:00 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-05 19:47:00 +0100 |
| commit | b1fab16befb78232d7a913f58beef639c5891e26 (patch) | |
| tree | 3a8596bca862ecee3d464aa933bd6411d4c442a8 /src/lib.rs | |
| parent | 0b15a38e324c3940318df462812c42f74a544267 (diff) | |
| download | sylt-b1fab16befb78232d7a913f58beef639c5891e26.tar.gz | |
set no_print in tests
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -873,14 +873,14 @@ mod tests { #[macro_export] macro_rules! test_file { - ($fn:ident, $path:literal) => { + ($fn:ident, $path:literal, $print:expr) => { #[test] fn $fn() { let file = std::path::Path::new($path); - crate::run_file(&file, true, Vec::new()).unwrap(); + crate::run_file(&file, $print, Vec::new()).unwrap(); } }; - ($fn:ident, $path:literal, $errs:tt) => { + ($fn:ident, $path:literal, $print:expr, $errs:tt) => { #[test] fn $fn() { use crate::error::ErrorKind; @@ -888,7 +888,7 @@ mod tests { use crate::Type; let file = std::path::Path::new($path); - let res = crate::run_file(&file, true, Vec::new()); + let res = crate::run_file(&file, $print, Vec::new()); $crate::assert_errs!(res, $errs); } }; |
