Skip to content

Commit 91cb148

Browse files
committed
test: fix failed tests
1 parent 322960f commit 91cb148

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/snapshots/ui__ui_test_err_decompress_missing_extension_without_rar-1.snap

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
source: tests/ui.rs
33
expression: "run_ouch(\"ouch decompress a\", dir)"
44
---
5+
[WARNING] Received a file with name 'a', but a was expected as the extension
56
[ERROR] Cannot decompress files
67
- Files with missing extensions: <TMP_DIR>/a
78
- Decompression formats are detected automatically from file extension
89

9-
hint: Supported extensions are: tar, zip, bz, bz2, bz3, gz, lz4, xz, lzma, lz, sz, zst, 7z
10+
hint: Supported extensions are: tar, zip, bz, bz2, bz3, gz, lz4, xz, lzma, lz, sz, zst, 7z, a, deb
1011
hint: Supported aliases are: tgz, tbz, tlz4, txz, tlzma, tsz, tzst, tlz, cbt, cbz, cb7, cbr
11-
hint:
12+
hint:
1213
hint: Alternatively, you can pass an extension to the '--format' flag:
1314
hint: ouch decompress <TMP_DIR>/a --format tar.gz

tests/snapshots/ui__ui_test_err_format_flag_without_rar-1.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ expression: "run_ouch(\"ouch compress input output --format tar.gz.unknown\", di
55
[ERROR] Failed to parse `--format tar.gz.unknown`
66
- Unsupported extension 'unknown'
77

8-
hint: Supported extensions are: tar, zip, bz, bz2, bz3, gz, lz4, xz, lzma, lz, sz, zst, 7z
8+
hint: Supported extensions are: tar, zip, bz, bz2, bz3, gz, lz4, xz, lzma, lz, sz, zst, 7z, a, deb
99
hint: Supported aliases are: tgz, tbz, tlz4, txz, tlzma, tsz, tzst, tlz, cbt, cbz, cb7, cbr
10-
hint:
10+
hint:
1111
hint: Examples:
1212
hint: --format tar
1313
hint: --format gz

0 commit comments

Comments
 (0)