Skip to content

Commit

Permalink
Fix test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
brmmm3 committed Oct 26, 2024
1 parent 0b399cf commit eb370ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scandir/tests/scandir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn test_scandir() -> Result<(), Error> {
#[cfg(unix)]
assert_eq!(210, entries.results.len());
#[cfg(windows)]
assert_eq!(75, entries.results.len());
assert_eq!(93, entries.results.len());
assert_eq!(0, entries.errors.len());
#[cfg(target_os = "linux")]
match entries.results.first().unwrap() {
Expand Down Expand Up @@ -45,7 +45,7 @@ fn test_scandir_skip_hidden() -> Result<(), Error> {
#[cfg(unix)]
assert_eq!(192, entries.results.len());
#[cfg(windows)]
assert_eq!(93, entries.results.len());
assert_eq!(75, entries.results.len());
assert_eq!(0, entries.errors.len());
match entries.results.first().unwrap() {
ScandirResult::DirEntry(d) => {
Expand Down Expand Up @@ -75,7 +75,7 @@ fn test_scandir_extended() -> Result<(), Error> {
#[cfg(unix)]
assert_eq!(210, entries.results.len());
#[cfg(windows)]
assert_eq!(75, entries.results.len());
assert_eq!(93, entries.results.len());
assert_eq!(0, entries.errors.len());
match entries.results.first().unwrap() {
ScandirResult::DirEntryExt(d) => {
Expand Down

0 comments on commit eb370ec

Please sign in to comment.