aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests.rs
diff options
context:
space:
mode:
authorTeddy Wing2016-04-19 21:49:50 -0400
committerTeddy Wing2016-04-19 21:49:50 -0400
commit34233725b026212f8e8dd880e00b17cf22324d84 (patch)
treea91e43228d07c1dee5017c51b634c6c7cee76e3b /src/tests.rs
parenta2ff502bffe10f9ba15edeab2ab81f5b4e007cc0 (diff)
downloadmutt-alias-auto-add-34233725b026212f8e8dd880e00b17cf22324d84.tar.bz2
Rename is_alias_in_file to find_alias_in_file
I think we should return a list of matched aliases from this function instead of a simple boolean value. As such, we'll start by renaming the function to something that makes sense in that context. We now need to modify the function and return type in order to provide that information.
Diffstat (limited to 'src/tests.rs')
-rw-r--r--src/tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests.rs b/src/tests.rs
index 29723cd..ccacd29 100644
--- a/src/tests.rs
+++ b/src/tests.rs
@@ -1,4 +1,4 @@
-use super::{Alias, is_alias_in_file};
+use super::{Alias, find_alias_in_file};
#[test]
fn new_alias_with_only_email() {
@@ -42,8 +42,8 @@ fn new_alias_with_special_characters() {
#[test]
-fn is_alias_in_file_finds_a_match() {
- is_alias_in_file(
+fn find_alias_in_file_finds_a_match() {
+ find_alias_in_file(
&Alias {
alias: "farnsworth-hubert".to_owned(),
name: "Hubert Farnsworth".to_owned(),