From 10f8870dc80acc0b6458aa5c04fba03cd586291f Mon Sep 17 00:00:00 2001 From: Jake Fecher Date: Fri, 22 Sep 2023 14:11:26 -0500 Subject: [PATCH] Fix test --- compiler/fm/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/fm/src/lib.rs b/compiler/fm/src/lib.rs index b0f607116fa..1703db8d048 100644 --- a/compiler/fm/src/lib.rs +++ b/compiler/fm/src/lib.rs @@ -231,12 +231,13 @@ mod tests { let dep_file_name = Path::new("foo.nr"); create_dummy_file(&dir, dep_file_name); - fm.find_module(file_id, "foo").unwrap(); + fm.find_module(file_id, "foo").unwrap_err(); } + #[test] fn path_resolve_file_module_other_ext() { let dir = tempdir().unwrap(); - let file_name = Path::new("foo.noir"); + let file_name = Path::new("foo.nr"); create_dummy_file(&dir, file_name); let mut fm = FileManager::new(dir.path()); @@ -245,6 +246,7 @@ mod tests { assert!(fm.path(file_id).ends_with("foo")); } + #[test] fn path_resolve_sub_module() { let dir = tempdir().unwrap();