chore: Update unit tests
This commit is contained in:
parent
15f8bac454
commit
eb949ebdef
3 changed files with 3 additions and 9 deletions
12
src/write.rs
12
src/write.rs
|
@ -1926,7 +1926,7 @@ mod test {
|
||||||
*result.get_ref(),
|
*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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
80, 75, 5, 6, 0, 0, 0, 0, 1, 0, 1, 0, 50, 0, 0, 0, 40, 0, 0, 0, 0, 0
|
||||||
] as &[u8],
|
] 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,
|
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, 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,
|
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,
|
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,
|
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
|
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();
|
.unwrap();
|
||||||
let zip = writer.finish().unwrap();
|
let zip = writer.finish().unwrap();
|
||||||
println!("{:02x?}", zip.get_ref());
|
|
||||||
let _ = ZipArchive::new(zip).unwrap();
|
let _ = ZipArchive::new(zip).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2249,7 +2248,6 @@ mod test {
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let zip = writer.finish().unwrap();
|
let zip = writer.finish().unwrap();
|
||||||
println!("{:02x?}", zip.get_ref());
|
|
||||||
let _ = ZipArchive::new(zip).unwrap();
|
let _ = ZipArchive::new(zip).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2266,7 +2264,6 @@ mod test {
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let zip = writer.finish().unwrap();
|
let zip = writer.finish().unwrap();
|
||||||
println!("{:02x?}", zip.get_ref());
|
|
||||||
let _ = ZipArchive::new(zip).unwrap();
|
let _ = ZipArchive::new(zip).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2293,7 +2290,6 @@ mod test {
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let zip = writer.finish().unwrap();
|
let zip = writer.finish().unwrap();
|
||||||
println!("{:02x?}", zip.get_ref());
|
|
||||||
let _ = ZipArchive::new(zip).unwrap();
|
let _ = ZipArchive::new(zip).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2319,7 +2315,6 @@ mod test {
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let zip = writer.finish().unwrap();
|
let zip = writer.finish().unwrap();
|
||||||
println!("{:02x?}", zip.get_ref());
|
|
||||||
let _ = ZipArchive::new(zip).unwrap();
|
let _ = ZipArchive::new(zip).unwrap();
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -2366,7 +2361,6 @@ mod test {
|
||||||
writer.add_symlink("", "s\t\0\0ggggg\0\0", options).unwrap();
|
writer.add_symlink("", "s\t\0\0ggggg\0\0", options).unwrap();
|
||||||
writer.abort_file().unwrap();
|
writer.abort_file().unwrap();
|
||||||
let zip = writer.finish().unwrap();
|
let zip = writer.finish().unwrap();
|
||||||
println!("{:0>2x?}", zip.get_ref());
|
|
||||||
let mut writer = ZipWriter::new_append(zip).unwrap();
|
let mut writer = ZipWriter::new_append(zip).unwrap();
|
||||||
writer.start_file("", SimpleFileOptions::default()).unwrap();
|
writer.start_file("", SimpleFileOptions::default()).unwrap();
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue