13 Commits

Author SHA1 Message Date
Paul Dicker
5c3f40cc67 Fix dead code error when running dateutils test on Windows 2023-06-05 07:40:19 +02:00
jtmoon79
e41451dedc try_verify_against_date_command NFC print progress messages
Print progress messages for human users watching this long-running
test `try_verify_against_date_command`.
2023-05-30 10:00:47 +02:00
jtmoon79
b1729f3a9b try_verify_against_date sanity check date command
Sanity check `date` command used in tests `try_verify_against_date_command`
and `try_verify_against_date_command_format`. Make sure it's the kind of
`data` command expected (accepts `--version`).
Also, it's just good to print this for debugging purposes.
2023-05-30 10:00:47 +02:00
jtmoon79
05c9408f43 consolidate path to date 2023-05-30 10:00:47 +02:00
scarf
c01e3a7238 test: explicitly set LANG in gnu date 2023-05-28 11:39:42 +02:00
Qiu Chaofan
8df1ba108f Fix tests on AIX
- Add AIX timezone database path to search list.
- Use date program from freeware to do the testing.
2023-05-11 13:56:12 +02:00
Paul Dicker
895d3b867f Fix warnings when running tests on Windows 2023-04-25 17:18:16 +02:00
raphaelroosz
a9b1ec412a fix ordinal week calculation
* math is 0 based while ordinal is 1 based => fix as 1 based logic
* add extensive testing against the "date" command format
* format: test sample instead of every day
* 2007 starts with saturday
* Last day of the year is thus the 52 on Monday weekly calendar, 53 on Sunday weekly calendar.
* update %U expected value in test
* Was the goal was to have a different value than with %W at next line ? another date to pick ?
* update cfg("unix") into cfg(target_os = "linux")
* format tests/dateutils.rs
2023-03-04 12:18:21 +01:00
Dirkjan Ochtman
22b4d32498 Avoid use of deprecated API 2022-11-09 13:37:17 +01:00
Dirkjan Ochtman
7cd5e03ee4 Fix up internal calls to newly deprecated methods 2022-10-09 14:15:02 +02:00
Dirkjan Ochtman
71b5881824 Extract date value to avoid multi-line match scrutinee 2022-10-09 14:15:02 +02:00
Dirkjan Ochtman
a9b250764f Deprecate methods that have an _opt() alternative 2022-10-09 14:15:02 +02:00
Eric Sheppard
cb073a0db7 move test against date command to integration tests 2022-09-26 12:47:29 +02:00