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

ls: update chrono crate version and switch to new_lenient use (#7858)

* update chrono crate version and switch to new_lenient use

* bring back custom_tz_fmt and update test

* update chrono version in fuzz lock file

* replace boxing with parse_to_owned
This commit is contained in:
Leo Emar-Kar 2025-04-29 15:29:42 +01:00 committed by GitHub
parent 8084231eb9
commit b14388ca41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 13 deletions

View file

@ -5705,3 +5705,13 @@ fn test_time_style_timezone_name() {
.succeeds()
.stdout_matches(&re_custom_format);
}
#[test]
fn test_unknown_format_specifier() {
let re_custom_format = Regex::new(r"[a-z-]* \d* [\w.]* [\w.]* \d+ \d{4} %0 \d{9} f\n").unwrap();
let (at, mut ucmd) = at_and_ucmd!();
at.touch("f");
ucmd.args(&["-l", "--time-style=+%Y %0 %N"])
.succeeds()
.stdout_matches(&re_custom_format);
}