From a8982faf4729adcbe699651677f17d733b85f3ad Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 7 Dec 2012 12:09:27 -0500 Subject: [PATCH] Bug 9211 - days_between wrong behaviour - Followup - Add Test to Calendar.t --- t/Calendar.t | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/t/Calendar.t b/t/Calendar.t index 42b8342..3b86851 100755 --- a/t/Calendar.t +++ b/t/Calendar.t @@ -90,6 +90,10 @@ my $daycount = $cal->days_between( $test_dt, $later_dt ); cmp_ok( $daycount->in_units('days'), '==', 48, 'days_between calculates correctly' ); +my $daycount = $cal->days_between( $later_dt, $test_dt ); +cmp_ok( $daycount->in_units('days'), + '==', 48, 'days_between calculates correctly with dates reversed' ); + my $ret; $cal->set_daysmode('Calendar'); -- 1.7.2.5