mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-05 02:55:31 +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)]
|
#[derive(Arbitrary, Debug, Display)]
|
||||||
#[display(style = "lowercase")]
|
#[display(style = "lowercase")]
|
||||||
enum DirectoryExtension {
|
enum DirectoryExtension {
|
||||||
|
#[display("7z")]
|
||||||
|
SevenZ,
|
||||||
Tar,
|
Tar,
|
||||||
Tbz,
|
Tbz,
|
||||||
Tbz2,
|
Tbz2,
|
||||||
|
@ -17,11 +17,12 @@ fn sanity_check_through_mime() {
|
|||||||
write_random_content(test_file, &mut SmallRng::from_entropy());
|
write_random_content(test_file, &mut SmallRng::from_entropy());
|
||||||
|
|
||||||
let formats = [
|
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",
|
"tar.xz", "tar.zst",
|
||||||
];
|
];
|
||||||
|
|
||||||
let expected_mimes = [
|
let expected_mimes = [
|
||||||
|
"application/x-7z-compressed",
|
||||||
"application/x-tar",
|
"application/x-tar",
|
||||||
"application/zip",
|
"application/zip",
|
||||||
"application/gzip",
|
"application/gzip",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user