Skip to content

Commit

Permalink
tests: fix test for nested int test file discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Oct 29, 2019
1 parent d35ebf7 commit 7c7c738
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cargo-fmt/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -917,10 +917,11 @@ mod cargo_fmt_tests {
let exp_other = PathBuf::from(
"tests/nested-test-files/root-and-nested-tests/tests/nested/other.rs",
);
assert_eq!(
Some(vec![exp_baz, exp_foo_bar, exp_other]),
get_nested_integration_test_files(&target_dir, &target_dir),
)
let files = get_nested_integration_test_files(&target_dir, &target_dir).unwrap();
assert_eq!(3, files.len());
assert!(files.contains(&exp_baz));
assert!(files.contains(&exp_foo_bar));
assert!(files.contains(&exp_other));
}
}

Expand Down

0 comments on commit 7c7c738

Please sign in to comment.