Ceate test to search for not exits file

This commit is contained in:
Anas Elgarhy 2023-02-08 22:31:22 +02:00
parent 97e6a346a8
commit eb78da0a71
No known key found for this signature in database
GPG key ID: 0501802A1D496528

View file

@ -146,4 +146,12 @@ mod tests {
"tests/samples/Owl City/Cinematic/08 - Always.lrc" "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));
}
} }