diff options
Diffstat (limited to 'test/test_dir.rs')
-rw-r--r-- | test/test_dir.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_dir.rs b/test/test_dir.rs index c5f9c517..505277e7 100644 --- a/test/test_dir.rs +++ b/test/test_dir.rs @@ -34,7 +34,9 @@ fn rewind() { Mode::empty()).unwrap(); let entries1: Vec<_> = dir.iter().map(|e| e.unwrap().file_name().to_owned()).collect(); let entries2: Vec<_> = dir.iter().map(|e| e.unwrap().file_name().to_owned()).collect(); + let entries3: Vec<_> = dir.into_iter().map(|e| e.unwrap().file_name().to_owned()).collect(); assert_eq!(entries1, entries2); + assert_eq!(entries2, entries3); } #[test] |