1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 11:36:16 +00:00

Update parse_datetime to 0.5.0 (#5313)

This commit is contained in:
Daniel Clarke 2023-10-01 12:01:46 -04:00 committed by GitHub
parent 3d015826b9
commit c27fcc4084
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 31 deletions

View file

@ -844,3 +844,15 @@ fn test_touch_dash() {
ucmd.args(&["-h", "-"]).succeeds().no_stderr().no_stdout();
}
#[test]
// Chrono panics for now
#[ignore]
fn test_touch_invalid_date_format() {
let (_at, mut ucmd) = at_and_ucmd!();
let file = "test_touch_invalid_date_format";
ucmd.args(&["-m", "-t", "+1000000000000 years", file])
.fails()
.stderr_contains("touch: invalid date format +1000000000000 years");
}