Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Sep 22, 2023
1 parent 8e5bda6 commit 10f8870
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/fm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -245,6 +246,7 @@ mod tests {

assert!(fm.path(file_id).ends_with("foo"));
}

#[test]
fn path_resolve_sub_module() {
let dir = tempdir().unwrap();
Expand Down

0 comments on commit 10f8870

Please sign in to comment.