Skip to content

Commit

Permalink
Stabilise test
Browse files Browse the repository at this point in the history
  • Loading branch information
flother committed Oct 12, 2023
1 parent 88140d4 commit f6e893a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ fn get_svg_input_paths_returns_non_recursive_results() {

#[test]
fn get_svg_input_paths_returns_recursive_results() {
let mut input_paths = get_svg_input_paths(Path::new("tests/fixtures/svgs"), true).unwrap();
input_paths.sort();
assert_eq!(
get_svg_input_paths(Path::new("tests/fixtures/svgs"), true).unwrap(),
input_paths,
vec![
Path::new("tests/fixtures/svgs/circle.svg"),
Path::new("tests/fixtures/svgs/another_bicycle.svg"),
Path::new("tests/fixtures/svgs/recursive/bear.svg"),
Path::new("tests/fixtures/svgs/bicycle.svg"),
Path::new("tests/fixtures/svgs/circle.svg"),
Path::new("tests/fixtures/svgs/recursive/bear.svg"),
]
);
}
Expand Down

0 comments on commit f6e893a

Please sign in to comment.