Skip to content

Commit d5c7c9f

Browse files
committed
test: Remove file extension from fixture test name
1 parent c7a0a3b commit d5c7c9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fixtures/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414
}
1515

1616
fn setup(input_path: std::path::PathBuf) -> tryfn::Case {
17-
let name = input_path.file_name().unwrap().to_str().unwrap().to_owned();
17+
let name = input_path.file_stem().unwrap().to_str().unwrap().to_owned();
1818
let expected = Data::read_from(&input_path.with_extension("svg"), None);
1919
tryfn::Case {
2020
name,

0 commit comments

Comments
 (0)