View | Details | Raw Unified | Return to bug 9211
Collapse All | Expand All

(-)a/t/Calendar.t (-3 / +2 lines)
Lines 4-10 use strict; Link Here
4
use warnings;
4
use warnings;
5
use DateTime;
5
use DateTime;
6
use DateTime::Duration;
6
use DateTime::Duration;
7
use Test::More tests => 26;
7
use Test::More tests => 27;
8
use Koha::DateUtils;
8
use Koha::DateUtils;
9
9
10
BEGIN {
10
BEGIN {
Lines 90-96 my $daycount = $cal->days_between( $test_dt, $later_dt ); Link Here
90
cmp_ok( $daycount->in_units('days'),
90
cmp_ok( $daycount->in_units('days'),
91
    '==', 48, 'days_between calculates correctly' );
91
    '==', 48, 'days_between calculates correctly' );
92
92
93
my $daycount = $cal->days_between( $later_dt, $test_dt );
93
$daycount = $cal->days_between( $later_dt, $test_dt );
94
cmp_ok( $daycount->in_units('days'),
94
cmp_ok( $daycount->in_units('days'),
95
    '==', 48, 'days_between calculates correctly with dates reversed' );
95
    '==', 48, 'days_between calculates correctly with dates reversed' );
96
96
97
- 

Return to bug 9211