mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
sleep: adapt two tests to fundu 2.0.0
This commit is contained in:
parent
5b33670f96
commit
cef9ab10c3
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ fn test_invalid_time_interval() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.arg("xyz")
|
.arg("xyz")
|
||||||
.fails()
|
.fails()
|
||||||
.usage_error("invalid time interval 'xyz': Invalid input: 'xyz' at position 1");
|
.usage_error("invalid time interval 'xyz': Invalid input: xyz");
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.args(&["--", "-1"])
|
.args(&["--", "-1"])
|
||||||
.fails()
|
.fails()
|
||||||
|
@ -211,7 +211,7 @@ fn test_sleep_when_input_has_only_whitespace_then_error(#[case] input: &str) {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_sleep_when_multiple_input_some_with_error_then_shows_all_errors() {
|
fn test_sleep_when_multiple_input_some_with_error_then_shows_all_errors() {
|
||||||
let expected = "invalid time interval 'abc': Invalid input: 'abc' at position 1\n\
|
let expected = "invalid time interval 'abc': Invalid input: abc\n\
|
||||||
sleep: invalid time interval '1years': Invalid time unit: 'years' at position 2\n\
|
sleep: invalid time interval '1years': Invalid time unit: 'years' at position 2\n\
|
||||||
sleep: invalid time interval ' ': Found only whitespace in input";
|
sleep: invalid time interval ' ': Found only whitespace in input";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue