mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 03:26:18 +00:00
touch: accept shortcuts for stringly-enum arguments
This commit is contained in:
parent
25245bde65
commit
3285f95eb3
2 changed files with 15 additions and 4 deletions
|
@ -192,7 +192,14 @@ fn test_touch_set_cymdhms_time() {
|
|||
|
||||
#[test]
|
||||
fn test_touch_set_only_atime() {
|
||||
let atime_args = ["-a", "--time=access", "--time=atime", "--time=use"];
|
||||
let atime_args = [
|
||||
"-a",
|
||||
"--time=access",
|
||||
"--time=atime",
|
||||
"--time=atim", // spell-checker:disable-line
|
||||
"--time=a",
|
||||
"--time=use",
|
||||
];
|
||||
let file = "test_touch_set_only_atime";
|
||||
|
||||
for atime_arg in atime_args {
|
||||
|
@ -293,7 +300,7 @@ fn test_touch_set_both_time_and_date() {
|
|||
|
||||
#[test]
|
||||
fn test_touch_set_only_mtime() {
|
||||
let mtime_args = ["-m", "--time=modify", "--time=mtime"];
|
||||
let mtime_args = ["-m", "--time=modify", "--time=mtime", "--time=m"];
|
||||
let file = "test_touch_set_only_mtime";
|
||||
|
||||
for mtime_arg in mtime_args {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue