Skip to content

Commit

Permalink
Fix unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
theoforger committed Sep 25, 2024
1 parent 106e333 commit ef79a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ fn test_api_instance() {

#[test]
fn test_read_words_from_file() {
let to_link = read_words_from_file(PathBuf::from("examples/link.txt"));
let to_link = read_words_from_file(&PathBuf::from("examples/link.txt"));
assert!(to_link.is_ok());
let to_avoid = read_words_from_file(PathBuf::from("examples/avoid.txt"));
let to_avoid = read_words_from_file(&PathBuf::from("examples/avoid.txt"));
assert!(to_avoid.is_ok());
}

Expand Down

0 comments on commit ef79a1e

Please sign in to comment.