mirror of
https://github.com/eza-community/eza.git
synced 2025-08-04 17:08:42 +00:00
test: add tests for non-recent/recent custom time style
This commit is contained in:
parent
baca71751a
commit
131ad8afc1
18 changed files with 63 additions and 9 deletions
|
@ -0,0 +1,2 @@
|
|||
NON_RECENT 13_month
|
||||
RECENT now
|
|
@ -0,0 +1,2 @@
|
|||
bin.name = "eza"
|
||||
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+NON_RECENT\n RECENT'"
|
|
@ -0,0 +1,2 @@
|
|||
[..]Custom timestamp format is empty, please supply a chrono format string after the plus sign.[..]
|
||||
...
|
|
@ -0,0 +1,3 @@
|
|||
bin.name = "eza"
|
||||
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+\n'"
|
||||
status.code = 101
|
|
@ -0,0 +1,2 @@
|
|||
[..]Custom timestamp format is empty, please supply a chrono format string after the plus sign.[..]
|
||||
...
|
|
@ -0,0 +1,3 @@
|
|||
bin.name = "eza"
|
||||
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+'"
|
||||
status.code = 101
|
|
@ -0,0 +1,2 @@
|
|||
NON_RECENT 13_month
|
||||
NON_RECENT now
|
|
@ -0,0 +1,2 @@
|
|||
bin.name = "eza"
|
||||
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+NON_RECENT'"
|
2
tests/gen/long_time_style_custom_recent_empty_nix.stderr
Normal file
2
tests/gen/long_time_style_custom_recent_empty_nix.stderr
Normal file
|
@ -0,0 +1,2 @@
|
|||
[..]Custom timestamp format for recent files is empty, please supply a chrono format string at the second line.[..]
|
||||
...
|
0
tests/gen/long_time_style_custom_recent_empty_nix.stdout
Normal file
0
tests/gen/long_time_style_custom_recent_empty_nix.stdout
Normal file
3
tests/gen/long_time_style_custom_recent_empty_nix.toml
Normal file
3
tests/gen/long_time_style_custom_recent_empty_nix.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
bin.name = "eza"
|
||||
args = "tests/timestamp_test_dir --long --no-permissions --no-filesize --no-user --sort=modified --time-style='+NON_RECENT\n\n'"
|
||||
status.code = 101
|
Loading…
Add table
Add a link
Reference in a new issue