add date test

This commit is contained in:
n4n5
2024-07-02 20:07:06 +02:00
parent 4183977c93
commit 9846af40e5
+8
View File
@@ -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 {