mirror of
https://github.com/uutils/coreutils
synced 2024-09-06 16:03:44 +00:00
Merge pull request #6526 from Its-Just-Nans/add-test-date
date: add test
This commit is contained in:
commit
14230e3c68
|
@ -390,6 +390,14 @@ fn test_date_string_human() {
|
|||
"5 hours ago",
|
||||
"30 minutes ago",
|
||||
"10 seconds",
|
||||
"last day",
|
||||
"last week",
|
||||
"last month",
|
||||
"last year",
|
||||
"next day",
|
||||
"next week",
|
||||
"next month",
|
||||
"next year",
|
||||
];
|
||||
let re = Regex::new(r"^\d{4}-\d{2}-\d{2} \d{2}:\d{2}\n$").unwrap();
|
||||
for date_format in date_formats {
|
||||
|
|
Loading…
Reference in a new issue