aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-05 18:14:05 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-05 18:14:05 +0100
commite1e7337239066677dd6bc82b826e861cf6710836 (patch)
tree191a2ee77dece3272dccd494b4a6992bb5873247 /src
parentba2a7b3290102e3573cc7b2727026f4efe8a1d9f (diff)
downloadsylt-e1e7337239066677dd6bc82b826e861cf6710836.tar.gz
expand test-files in modules
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs8
1 files changed, 3 insertions, 5 deletions
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();
}
};
}