Ceate test to search for not exits file
This commit is contained in:
parent
97e6a346a8
commit
eb78da0a71
1 changed files with 8 additions and 0 deletions
|
@ -146,4 +146,12 @@ mod tests {
|
|||
"tests/samples/Owl City/Cinematic/08 - Always.lrc"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_search_for_not_exits_file() {
|
||||
let result = search_for(
|
||||
"tests/samples/Owl City/Cinematic/cover", 3, r".\.mp3");
|
||||
|
||||
assert_matches!(result, Ok(None));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue