test: Fix end-to-end test
This commit is contained in:
parent
84ae5fc157
commit
b520c7f517
1 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ use std::collections::HashSet;
|
|||
use std::io::prelude::*;
|
||||
use std::io::Cursor;
|
||||
use zip::result::ZipResult;
|
||||
use zip::unstable::LittleEndianWriteExt;
|
||||
use zip::write::ExtendedFileOptions;
|
||||
use zip::write::FileOptions;
|
||||
use zip::write::SimpleFileOptions;
|
||||
|
@ -158,8 +159,8 @@ fn check_test_archive<R: Read + Seek>(zip_file: R) -> ZipResult<zip::ZipArchive<
|
|||
{
|
||||
let file_with_extra_data = archive.by_name("test_with_extra_data/🐢.txt")?;
|
||||
let mut extra_data = Vec::new();
|
||||
extra_data.write_u16(0xbeef)?;
|
||||
extra_data.write_u16(EXTRA_DATA.len() as u16)?;
|
||||
extra_data.write_u16_le(0xbeef)?;
|
||||
extra_data.write_u16_le(EXTRA_DATA.len() as u16)?;
|
||||
extra_data.write_all(EXTRA_DATA)?;
|
||||
assert_eq!(
|
||||
file_with_extra_data.extra_data(),
|
||||
|
|
Loading…
Add table
Reference in a new issue