Skip to content

Commit 8cdd8d9

Browse files
committed
test: add test for no file extension
1 parent 6fe8e7f commit 8cdd8d9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/media_info.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,10 @@ fn wrong_extension() {
104104
let input = "filename.ext";
105105
let (_date, _extracted_filename, _extension) = get_file_parts(input);
106106
}
107+
108+
#[test]
109+
#[should_panic]
110+
fn no_extension() {
111+
let input = "filename";
112+
let (_date, _extracted_filename, _extension) = get_file_parts(input);
113+
}

0 commit comments

Comments
 (0)