mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
Rustfmt the tests
This commit is contained in:
parent
976fa95ce8
commit
9132d32315
1 changed files with 7 additions and 2 deletions
|
@ -139,7 +139,10 @@ fn test_date_format_full_day() {
|
|||
fn test_date_set_valid() {
|
||||
if get_effective_uid() == 0 {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
let result = ucmd.arg("--set").arg("2020-03-12 13:30:00+08:00").succeeds();
|
||||
let result = ucmd
|
||||
.arg("--set")
|
||||
.arg("2020-03-12 13:30:00+08:00")
|
||||
.succeeds();
|
||||
result.no_stdout().no_stderr();
|
||||
}
|
||||
}
|
||||
|
@ -170,5 +173,7 @@ fn test_date_set_mac_unavailable() {
|
|||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
let result = ucmd.arg("--set").arg("2020-03-11 21:45:00+08:00").fails();
|
||||
let result = result.no_stdout();
|
||||
assert!(result.stderr.starts_with("date: setting the date is not supported by macOS"));
|
||||
assert!(result
|
||||
.stderr
|
||||
.starts_with("date: setting the date is not supported by macOS"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue