From ebb4e01329418f592f5eb2372913ea0e6b17022b Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Thu, 11 May 2023 10:13:09 -0700 Subject: [PATCH] Slightly stronger assertion --- src/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read.rs b/src/read.rs index 6bb5addc..a47586ea 100644 --- a/src/read.rs +++ b/src/read.rs @@ -1257,7 +1257,7 @@ mod test { "../tests/data/invalid_cde_number_of_files_allocation_smaller_offset.zip" )); let reader = ZipArchive::new(io::Cursor::new(v)); - assert!(reader.is_err() || reader.unwrap().file_names().next().is_none()); + assert!(reader.is_err() || reader.unwrap().is_empty()); } /// test case to ensure we don't preemptively over allocate based on the