mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-03 10:00:19 +00:00
add 7z to tests
This commit is contained in:
parent
db0bc8a7d9
commit
4bea6af526
@ -19,6 +19,8 @@ use crate::utils::{assert_same_directory, write_random_content};
|
||||
#[derive(Arbitrary, Debug, Display)]
|
||||
#[display(style = "lowercase")]
|
||||
enum DirectoryExtension {
|
||||
#[display("7z")]
|
||||
SevenZ,
|
||||
Tar,
|
||||
Tbz,
|
||||
Tbz2,
|
||||
|
@ -17,11 +17,12 @@ fn sanity_check_through_mime() {
|
||||
write_random_content(test_file, &mut SmallRng::from_entropy());
|
||||
|
||||
let formats = [
|
||||
"tar", "zip", "tar.gz", "tgz", "tbz", "tbz2", "txz", "tlzma", "tzst", "tar.bz", "tar.bz2", "tar.lzma",
|
||||
"7z", "tar", "zip", "tar.gz", "tgz", "tbz", "tbz2", "txz", "tlzma", "tzst", "tar.bz", "tar.bz2", "tar.lzma",
|
||||
"tar.xz", "tar.zst",
|
||||
];
|
||||
|
||||
let expected_mimes = [
|
||||
"application/x-7z-compressed",
|
||||
"application/x-tar",
|
||||
"application/zip",
|
||||
"application/gzip",
|
||||
|
Loading…
x
Reference in New Issue
Block a user