From eb949ebdeff69978f74ca48234dbd2f01b574403 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Sat, 25 May 2024 15:05:02 -0700 Subject: [PATCH] chore: Update unit tests --- src/write.rs | 12 +++--------- tests/data/mimetype.zip | Bin 153 -> 153 bytes tests/data/non_utf8.zip | Bin 224 -> 224 bytes 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/write.rs b/src/write.rs index 80d8a776..e8095009 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1926,7 +1926,7 @@ mod test { *result.get_ref(), &[ 80u8, 75, 3, 4, 20, 0, 0, 0, 0, 0, 163, 165, 15, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 5, 0, 0, 0, 116, 101, 115, 116, 47, 80, 75, 1, 2, 46, 3, 20, 0, 0, 0, 0, 0, + 0, 0, 5, 0, 0, 0, 116, 101, 115, 116, 47, 80, 75, 1, 2, 20, 3, 20, 0, 0, 0, 0, 0, 163, 165, 15, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 237, 65, 0, 0, 0, 0, 116, 101, 115, 116, 47, 80, 75, 5, 6, 0, 0, 0, 0, 1, 0, 1, 0, 51, 0, 0, 0, 35, 0, 0, 0, 0, 0, @@ -1956,7 +1956,7 @@ mod test { &[ 80u8, 75, 3, 4, 10, 0, 0, 0, 0, 0, 163, 165, 15, 77, 252, 47, 111, 70, 6, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 110, 97, 109, 101, 116, 97, 114, 103, 101, 116, 80, 75, 1, - 2, 46, 3, 10, 0, 0, 0, 0, 0, 163, 165, 15, 77, 252, 47, 111, 70, 6, 0, 0, 0, 6, 0, + 2, 10, 3, 10, 0, 0, 0, 0, 0, 163, 165, 15, 77, 252, 47, 111, 70, 6, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 161, 0, 0, 0, 0, 110, 97, 109, 101, 80, 75, 5, 6, 0, 0, 0, 0, 1, 0, 1, 0, 50, 0, 0, 0, 40, 0, 0, 0, 0, 0 ] as &[u8], @@ -2003,7 +2003,7 @@ mod test { 36, 0, 0, 0, 14, 0, 0, 0, 100, 105, 114, 101, 99, 116, 111, 114, 121, 92, 108, 105, 110, 107, 47, 97, 98, 115, 111, 108, 117, 116, 101, 47, 115, 121, 109, 108, 105, 110, 107, 92, 119, 105, 116, 104, 92, 109, 105, 120, 101, 100, 47, 115, 108, 97, - 115, 104, 101, 115, 80, 75, 1, 2, 46, 3, 10, 0, 0, 0, 0, 0, 163, 165, 15, 77, 95, + 115, 104, 101, 115, 80, 75, 1, 2, 10, 3, 10, 0, 0, 0, 0, 0, 163, 165, 15, 77, 95, 41, 81, 245, 36, 0, 0, 0, 36, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 161, 0, 0, 0, 0, 100, 105, 114, 101, 99, 116, 111, 114, 121, 92, 108, 105, 110, 107, 80, 75, 5, 6, 0, 0, 0, 0, 1, 0, 1, 0, 60, 0, 0, 0, 80, 0, 0, 0, 0, 0 @@ -2235,7 +2235,6 @@ mod test { ) .unwrap(); let zip = writer.finish().unwrap(); - println!("{:02x?}", zip.get_ref()); let _ = ZipArchive::new(zip).unwrap(); } @@ -2249,7 +2248,6 @@ mod test { ) .unwrap(); let zip = writer.finish().unwrap(); - println!("{:02x?}", zip.get_ref()); let _ = ZipArchive::new(zip).unwrap(); } @@ -2266,7 +2264,6 @@ mod test { ) .unwrap(); let zip = writer.finish().unwrap(); - println!("{:02x?}", zip.get_ref()); let _ = ZipArchive::new(zip).unwrap(); } @@ -2293,7 +2290,6 @@ mod test { ) .unwrap(); let zip = writer.finish().unwrap(); - println!("{:02x?}", zip.get_ref()); let _ = ZipArchive::new(zip).unwrap(); } @@ -2319,7 +2315,6 @@ mod test { ) .unwrap(); let zip = writer.finish().unwrap(); - println!("{:02x?}", zip.get_ref()); let _ = ZipArchive::new(zip).unwrap(); Ok(()) } @@ -2366,7 +2361,6 @@ mod test { writer.add_symlink("", "s\t\0\0ggggg\0\0", options).unwrap(); writer.abort_file().unwrap(); let zip = writer.finish().unwrap(); - println!("{:0>2x?}", zip.get_ref()); let mut writer = ZipWriter::new_append(zip).unwrap(); writer.start_file("", SimpleFileOptions::default()).unwrap(); Ok(()) diff --git a/tests/data/mimetype.zip b/tests/data/mimetype.zip index c2f821322cb9443782689bc14de0cbcf2446e341..ec59150d16e40f53d264be87f03df106e1569421 100644 GIT binary patch delta 11 ScmbQqIFoTgAS2hrAa?*1vI9#1 delta 11 ScmbQqIFoTgAfw*IAa?*2LIZCA diff --git a/tests/data/non_utf8.zip b/tests/data/non_utf8.zip index 7bbfd645ff8908a51da6079e3f30c5a86cd5bfaf..513a907260cbf7f26be8bdf0566560ad666a3f76 100644 GIT binary patch delta 16 WcmaFB_<(Uj79-chY(pS1*BJmZ76owt delta 16 WcmaFB_<(Uj7Ng$8Y(pS1*BJma>IJy~