diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-05 18:14:05 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-05 18:14:05 +0100 |
| commit | e1e7337239066677dd6bc82b826e861cf6710836 (patch) | |
| tree | 191a2ee77dece3272dccd494b4a6992bb5873247 /src | |
| parent | ba2a7b3290102e3573cc7b2727026f4efe8a1d9f (diff) | |
| download | sylt-e1e7337239066677dd6bc82b826e861cf6710836.tar.gz | |
expand test-files in modules
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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(); } }; } |
