summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/03-date-handling.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/03-date-handling.t b/t/03-date-handling.t
index 019115a0..be252e9d 100644
--- a/t/03-date-handling.t
+++ b/t/03-date-handling.t
@@ -328,5 +328,7 @@ foreach my $format (0 .. $#formats) {
cmp_ok($form->add_date(\%myconfig, $start, 2, 'years'), 'eq',
$results, "add_date, $fmt, 2 years, 2000-01-29");
}
+cmp_ok($form->add_date(\%myconfig, '20000129', 2, 'years'), 'eq',
+ '20020129', 'add_date, yyyymmdd, 2 years, 20000129');
ok(!defined $form->add_date(\%myconfig),
'add_date, undef if no date');