1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

Merge pull request #4813 from cakebaker/bump_fundu_to_0_5_1_and_fix_tests

Bump fundu to 0.5.1 and fix tests
This commit is contained in:
Sylvestre Ledru 2023-05-02 12:09:48 +02:00 committed by GitHub
commit e166d90db8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

4
Cargo.lock generated
View file

@ -962,9 +962,9 @@ dependencies = [
[[package]]
name = "fundu"
version = "0.5.0"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd020eeb034c9fc682e8fe6b9a28e1c0eda92eeb347c38776c09a0b227cdf9e5"
checksum = "2a37cfff04a32112c22c5497b20b0b09100fca406e76afd47b2ba5ab33d7a851"
[[package]]
name = "futures"

View file

@ -282,7 +282,7 @@ filetime = "0.2"
fnv = "1.0.7"
fs_extra = "1.3.0"
fts-sys = "0.2"
fundu = "0.5.0"
fundu = "0.5.1"
gcd = "2.3"
glob = "0.3.1"
half = "2.2"

View file

@ -10,7 +10,7 @@ fn test_invalid_time_interval() {
new_ucmd!()
.arg("xyz")
.fails()
.usage_error("invalid time interval 'xyz': Invalid character: 'x' at position 1");
.usage_error("invalid time interval 'xyz': Invalid input: 'xyz' at position 1");
new_ucmd!()
.args(&["--", "-1"])
.fails()
@ -211,7 +211,7 @@ fn test_sleep_when_input_has_only_whitespace_then_error(#[case] input: &str) {
#[test]
fn test_sleep_when_multiple_input_some_with_error_then_shows_all_errors() {
let expected = "invalid time interval 'abc': Invalid character: 'a' at position 1\n\
let expected = "invalid time interval 'abc': Invalid input: 'abc' at position 1\n\
sleep: invalid time interval '1years': Invalid time unit: 'years' at position 2\n\
sleep: invalid time interval ' ': Found only whitespace in input";