Skip to content

Commit

Permalink
Add test for listing archive files with Chinese characters
Browse files Browse the repository at this point in the history
  • Loading branch information
YaxinCheng authored and otavio committed Jan 9, 2023
1 parent f478686 commit b4177ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added tests/fixtures/chinese-name.zip
Binary file not shown.
8 changes: 8 additions & 0 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,3 +702,11 @@ fn decode_failure() {

panic!("Did not find expected error");
}

#[test]
fn decode_chinese_zip() {
let source = std::fs::File::open("tests/fixtures/chinese-name.zip").unwrap();
let files = list_archive_files(source).expect("Failed to list archives");
let expected = ["中文/", "中文/文件/"];
assert_eq!(files, expected);
}

0 comments on commit b4177ed

Please sign in to comment.