aboutsummaryrefslogtreecommitdiff
path: root/tests/zip.rs
blob: 65244c127312eb6ba0653b309fd9e86ec1d4f57d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use archivator::{Archive, Zip};

#[test]
fn test_zip() {
    let archive = Archive::<Zip<_>>::read_from_file("tests/files/zip.zip").unwrap();

    assert_eq!(archive.comment(), "archive comment");
    assert_eq!(
        archive
            .files()
            .iter()
            .map(|f| &f.name)
            .collect::<Vec<&String>>(),
        vec!["a", "b", "c"]
    );
}