aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-05 19:47:00 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-05 19:47:00 +0100
commitb1fab16befb78232d7a913f58beef639c5891e26 (patch)
tree3a8596bca862ecee3d464aa933bd6411d4c442a8 /src/lib.rs
parent0b15a38e324c3940318df462812c42f74a544267 (diff)
downloadsylt-b1fab16befb78232d7a913f58beef639c5891e26.tar.gz
set no_print in tests
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index afde461..e94eaad 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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);
}
};