aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/zip.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/zip.rs b/tests/zip.rs
index 9283df3..e44098c 100644
--- a/tests/zip.rs
+++ b/tests/zip.rs
@@ -92,6 +92,13 @@ fn test_zip_weak() {
92 92
93#[test] 93#[test]
94fn test_zip() { 94fn test_zip() {
95 assert_eq!(
96 Archive::<Zip>::read_from_file("tests/files/empty.zip")
97 .unwrap()
98 .len(),
99 0
100 );
101
95 let mut archive = Archive::<Zip>::read_from_file("tests/files/archive.zip").unwrap(); 102 let mut archive = Archive::<Zip>::read_from_file("tests/files/archive.zip").unwrap();
96 103
97 assert_eq!(archive.comment(), "archive comment"); 104 assert_eq!(archive.comment(), "archive comment");
@@ -158,11 +165,4 @@ fn test_zip() {
158fn test_bad_zip() { 165fn test_bad_zip() {
159 assert!(Archive::<Zip>::read_from_file("tests/files/blank") 166 assert!(Archive::<Zip>::read_from_file("tests/files/blank")
160 .is_err_and(|e| e == ZipError::EocdrNotFound)); 167 .is_err_and(|e| e == ZipError::EocdrNotFound));
161
162 assert_eq!(
163 Archive::<Zip>::read_from_file("tests/files/empty.zip")
164 .unwrap()
165 .len(),
166 0
167 );
168} 168}