summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-07 21:22:11 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-07 21:22:11 +0000
commit58c8dd2a4a6f7b4f5e914c3f83ba8b90c52fc732 (patch)
treef0ecf37616bc977db9998d83a7034b6021bc9d82 /t
parenta817c72bd69c85273951b11814669eb64ef633b5 (diff)
Scope fixing and a bugfix for $form->add_date
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1161 4979c152-3d1c-0410-bac9-87ea11338e46
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');