diff options
| author | Igor Tolmachev <me@igorek.dev> | 2024-07-14 18:31:33 +0900 |
|---|---|---|
| committer | Igor Tolmachev <me@igorek.dev> | 2024-07-14 18:31:33 +0900 |
| commit | 82620d64bf7d35fc456934c7175fc265df80e186 (patch) | |
| tree | a96cb638c40143bc3e48258d76a052b75a76bd1d /tests | |
| parent | d515e20a26cc959db912504706189ad1cce9dbfa (diff) | |
| download | archivator-82620d64bf7d35fc456934c7175fc265df80e186.tar.gz archivator-82620d64bf7d35fc456934c7175fc265df80e186.zip | |
Tests fix
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/zip.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/zip.rs b/tests/zip.rs index 1e919d3..11435aa 100644 --- a/tests/zip.rs +++ b/tests/zip.rs | |||
| @@ -3,7 +3,7 @@ use std::io::{Read, Seek, SeekFrom}; | |||
| 3 | 3 | ||
| 4 | #[test] | 4 | #[test] |
| 5 | fn test_zip() { | 5 | fn test_zip() { |
| 6 | let mut archive = Archive::<Zip<_>>::read_from_file("tests/files/archive.zip").unwrap(); | 6 | let mut archive = Archive::<Zip>::read_from_file("tests/files/archive.zip").unwrap(); |
| 7 | 7 | ||
| 8 | assert_eq!(archive.comment(), "archive comment"); | 8 | assert_eq!(archive.comment(), "archive comment"); |
| 9 | assert_eq!( | 9 | assert_eq!( |
| @@ -12,7 +12,7 @@ fn test_zip() { | |||
| 12 | .iter() | 12 | .iter() |
| 13 | .map(|f| &f.name) | 13 | .map(|f| &f.name) |
| 14 | .collect::<Vec<&String>>(), | 14 | .collect::<Vec<&String>>(), |
| 15 | vec!["bzip", "deflate", "lzma", "store", "xz", "zstd"] | 15 | vec!["store", "deflate", "bzip", "lzma", "zstd", "xz"] |
| 16 | ); | 16 | ); |
| 17 | 17 | ||
| 18 | let mut f = archive.get_file_reader_by_name("store").unwrap(); | 18 | let mut f = archive.get_file_reader_by_name("store").unwrap(); |
