From ef79a1e9e7450cafa691dbdee33ba1c467dff0c4 Mon Sep 17 00:00:00 2001 From: theoforger Date: Wed, 25 Sep 2024 16:03:54 -0400 Subject: [PATCH] Fix unit testing --- src/tests/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/mod.rs b/src/tests/mod.rs index daaff99..aa0917b 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -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()); }