1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-14 17:21:04 +00:00
uutils-coreutils/tests
Michael Vogt 3a6bf34284
date: fix date -f dates.txt is failing (#6148)
* date: fix `date -f dates.txt is failing`

This commit is a trivial followup for:
https://github.com/uutils/coreutils/pull/4917
and
https://github.com/uutils/parse_datetime/pull/12

The functionality to parse the datetime was moved into the parse_datetime
crate and the only (tiny) piece left is to call it from `date`.

It also adds the test-case from the original issue. I did not include
the two tests from PR#4917 because they appear to work even without
this change. I am happy to include them of course if prefered.

Closes: #4657

Thanks to Ben Schofield

* tests: tweak changes to test_date.rs to be more idiomatic

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-03-30 15:17:10 +01:00
..
benches/factor Add license headers on all files 2023-08-21 10:49:27 +02:00
by-util date: fix date -f dates.txt is failing (#6148) 2024-03-30 15:17:10 +01:00
common util: fix compile failed on Windows. 2024-03-23 17:13:07 +08:00
fixtures comm: permit and test separators that contain a hyphen 2024-03-23 23:35:40 +01:00
test_util_name.rs Add license headers on all files 2023-08-21 10:49:27 +02:00
tests.rs relpath: remove 2023-10-04 16:13:06 +02:00