mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-06 07:57:48 +00:00
test/touch: fmt
This commit is contained in:
parent
86422a70d2
commit
ed2787a6df
1 changed files with 13 additions and 4 deletions
|
@ -215,7 +215,8 @@ fn test_touch_set_both_time_and_reference() {
|
|||
set_file_times(&at, ref_file, start_of_year, start_of_year);
|
||||
assert!(at.file_exists(ref_file));
|
||||
|
||||
ucmd.args(&["-t", "2015010112342", "-r", ref_file]).fails();
|
||||
ucmd.args(&["-t", "2015010112342", "-r", ref_file, file])
|
||||
.fails();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -230,15 +231,23 @@ fn test_touch_set_both_date_and_reference() {
|
|||
set_file_times(&at, ref_file, start_of_year, start_of_year);
|
||||
assert!(at.file_exists(ref_file));
|
||||
|
||||
ucmd.args(&["-d", "Thu Jan 01 12:34:00 2015", "-r", ref_file]).fails();
|
||||
ucmd.args(&["-d", "Thu Jan 01 12:34:00 2015", "-r", ref_file, file])
|
||||
.fails();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_touch_set_both_time_and_date() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let (_at, mut ucmd) = at_and_ucmd!();
|
||||
let file = "test_touch_set_both_time_and_date";
|
||||
|
||||
ucmd.args(&["-t", "2015010112342", "-d", "Thu Jan 01 12:34:00 2015", file]).fails();
|
||||
ucmd.args(&[
|
||||
"-t",
|
||||
"2015010112342",
|
||||
"-d",
|
||||
"Thu Jan 01 12:34:00 2015",
|
||||
file,
|
||||
])
|
||||
.fails();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue