From 4d161329485fd8c6b31d34c6411addb06a586d21 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 18 Nov 2022 21:32:59 +0100 Subject: [PATCH] date: add a test for the issue 3780 to make sure we don't regress --- tests/by-util/test_date.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/by-util/test_date.rs b/tests/by-util/test_date.rs index 41fd54798..d17e9624e 100644 --- a/tests/by-util/test_date.rs +++ b/tests/by-util/test_date.rs @@ -109,6 +109,11 @@ fn test_date_format_full_day() { .stdout_matches(&re); } +#[test] +fn test_date_issue_3780() { + new_ucmd!().arg("+%Y-%m-%d %H-%M-%S%:::z").succeeds(); +} + #[test] fn test_date_nano_seconds() { // %N nanoseconds (000000000..999999999)