Skip to content

Commit cf79675

Browse files
authored
Merge pull request #8424 from cakebaker/bump_parse_datetime
Bump `parse_datetime` & adapt `touch` tests
2 parents 9938db3 + 7dc20bb commit cf79675

File tree

4 files changed

+21
-14
lines changed

4 files changed

+21
-14
lines changed

Cargo.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ num-prime = "0.4.4"
337337
num-traits = "0.2.19"
338338
number_prefix = "0.4"
339339
onig = { version = "~6.5.1", default-features = false }
340-
parse_datetime = "0.9.0"
340+
parse_datetime = "0.11.0"
341341
phf = "0.12.1"
342342
phf_codegen = "0.12.1"
343343
platform-info = "2.0.3"

fuzz/Cargo.lock

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/by-util/test_touch.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ fn test_touch_set_date_relative_smoke() {
684684
"2 seconds",
685685
"2 years 1 week",
686686
"2 days ago",
687-
"2 months and 1 second",
687+
"2 months 1 second",
688+
"a",
688689
];
689690
for time in times {
690691
let (at, mut ucmd) = at_and_ucmd!();
@@ -694,11 +695,6 @@ fn test_touch_set_date_relative_smoke() {
694695
.no_stderr()
695696
.no_stdout();
696697
}
697-
let (at, mut ucmd) = at_and_ucmd!();
698-
at.touch("f");
699-
ucmd.args(&["-d", "a", "f"])
700-
.fails()
701-
.stderr_contains("touch: Unable to parse date");
702698
}
703699

704700
#[test]

0 commit comments

Comments
 (0)