From 356a93cce46b887dbd6b683dc8172f714377b35b Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 14 Jan 2022 10:19:02 +0000 Subject: [PATCH] Bug 29403: (QA follow-up) Add comments why test should fail Signed-off-by: Marcel de Rooy --- t/DateUtils.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/DateUtils.t b/t/DateUtils.t index 447d75ffeda..97cffd75095 100755 --- a/t/DateUtils.t +++ b/t/DateUtils.t @@ -138,12 +138,12 @@ $dt0 = dt_from_string( '2012-01-01T23:59:59.999+02:00', 'rfc3339' ); cmp_ok( $dt0->epoch(), 'eq', '1325455199', 'dt_from_string handles seconds with 3 decimal places and a timezone' ); eval { - $dt0 = dt_from_string( '2012-01-01T23:59:59.999Z+02:00', 'rfc3339' ); + $dt0 = dt_from_string( '2012-01-01T23:59:59.999Z+02:00', 'rfc3339' ); # Do not combine Z with +02 ! }; like( $@, qr/.*does not match the date format \(rfc3339\).*/, 'dt_from_string should die when passed a bad rfc3339 date string' ); eval { - $dt0 = dt_from_string('2021-11-03T10:16:59Z+00:00', 'iso'); + $dt0 = dt_from_string('2021-11-03T10:16:59Z+00:00', 'iso'); # Z and +00 are the same, but should not be together }; like( $@, qr/.*does not match the date format \(iso\).*/, 'dt_from_string should die when passed a bad iso date string' ); -- 2.25.1