From e1e7337239066677dd6bc82b826e861cf6710836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 5 Mar 2021 18:14:05 +0100 Subject: expand test-files in modules --- src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index ee5f9c4..e26b3ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -802,11 +802,9 @@ pub struct Prog { #[cfg(test)] mod tests { - use std::path::Path; - use crate::error::ErrorKind; - use super::{run_file, run_string}; + use super::run_string; #[macro_export] macro_rules! assert_errs { @@ -912,8 +910,8 @@ mod tests { ($fn:ident, $path:literal) => { #[test] fn $fn() { - let file = Path::new($path); - run_file(&file, true, Vec::new()).unwrap(); + let file = std::path::Path::new($path); + crate::run_file(&file, true, Vec::new()).unwrap(); } }; } -- cgit v1.2.1