diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2024-07-03 08:10:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 08:10:20 +0200 |
commit | 14230e3c6820d5b24bf099b46d28cb9d5d7120da (patch) | |
tree | a90b8328421c940ca2372c4ca149f5351ee433a0 /tests/by-util | |
parent | af8e820b5e335a0c464579a8dd35b7dfade6ec87 (diff) | |
parent | 9846af40e52d04c2f8d0e8d7a2d42f8e1739c27e (diff) |
Merge pull request #6526 from Its-Just-Nans/add-test-date
date: add test
Diffstat (limited to 'tests/by-util')
-rw-r--r-- | tests/by-util/test_date.rs | 8 |
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 { |