update tests minigrep

This commit is contained in:
gbrochar 2020-12-06 17:53:46 +01:00
parent 044925fb15
commit 3c0bdf7b3c
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ Trust me.";
assert!(run(Config {
query: String::from("test"),
filename: String::from("poem.txt"),
case_sensitive: true,
}).is_ok());
}
@ -107,6 +108,7 @@ Trust me.";
assert!(run(Config {
query: String::from("test"),
filename: String::from("134857320592.txt"),
case_sensitive: true,
}).is_err());
}