mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
test/sleep: add and refine sleep
test cases
This commit is contained in:
parent
3033d017b5
commit
f8b545d6f8
1 changed files with 5 additions and 1 deletions
|
@ -9,6 +9,10 @@ fn test_invalid_time_interval() {
|
|||
.arg("xyz")
|
||||
.fails()
|
||||
.usage_error("invalid time interval 'xyz'");
|
||||
new_ucmd!()
|
||||
.args(&["--", "-1"])
|
||||
.fails()
|
||||
.usage_error("invalid time interval '-1'");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -75,7 +79,7 @@ fn test_sleep_zero_duration() {
|
|||
|
||||
#[test]
|
||||
fn test_sleep_no_argument() {
|
||||
new_ucmd!().fails();
|
||||
new_ucmd!().fails().usage_error("missing operand");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue