mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
add date test
This commit is contained in:
parent
4183977c93
commit
9846af40e5
1 changed files with 8 additions and 0 deletions
|
@ -390,6 +390,14 @@ fn test_date_string_human() {
|
||||||
"5 hours ago",
|
"5 hours ago",
|
||||||
"30 minutes ago",
|
"30 minutes ago",
|
||||||
"10 seconds",
|
"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();
|
let re = Regex::new(r"^\d{4}-\d{2}-\d{2} \d{2}:\d{2}\n$").unwrap();
|
||||||
for date_format in date_formats {
|
for date_format in date_formats {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue