Skip to content

Commit

Permalink
Merge pull request #6526 from Its-Just-Nans/add-test-date
Browse files Browse the repository at this point in the history
date: add test
  • Loading branch information
sylvestre authored Jul 3, 2024
2 parents af8e820 + 9846af4 commit 14230e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/by-util/test_date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 14230e3

Please sign in to comment.