zip-rs-wasm/tests/repro_old423.rs

13 lines
No EOL
402 B
Rust

use std::env::temp_dir;
use std::io;
use zip::result::ZipResult;
use zip::ZipArchive;
#[cfg(all(unix, feature = "_deflate-any"))]
#[test]
fn repro_old423() -> ZipResult<()> {
let mut v = Vec::new();
v.extend_from_slice(include_bytes!("data/lin-ub_iwd-v11.zip"));
let mut archive = ZipArchive::new(io::Cursor::new(v)).expect("couldn't open test zip file");
archive.extract(temp_dir())
}