summaryrefslogtreecommitdiffstats
path: root/tests/by-util
diff options
context:
space:
mode:
authorn4n5 <its.just.n4n5@gmail.com>2024-07-02 20:07:06 +0200
committern4n5 <its.just.n4n5@gmail.com>2024-07-02 20:07:06 +0200
commit9846af40e52d04c2f8d0e8d7a2d42f8e1739c27e (patch)
treedc83eb348f27aa23103ffc88c9c4cc34ff80a364 /tests/by-util
parent4183977c93af8f52680468576dedb90cb4a785d8 (diff)
add date test
Diffstat (limited to 'tests/by-util')
-rw-r--r--tests/by-util/test_date.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/by-util/test_date.rs b/tests/by-util/test_date.rs
index aea8989b6..bf9e1d86c 100644
--- a/tests/by-util/test_date.rs
+++ b/tests/by-util/test_date.rs
@@ -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 {