diff --git a/tests/fs.rs b/tests/fs.rs index 6ca2102..fd6cb21 100644 --- a/tests/fs.rs +++ b/tests/fs.rs @@ -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"), ] ); }