File: bug-reports.t

package info (click to toggle)
libclass-date-perl 1.1.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 364 kB
  • sloc: perl: 922; xml: 273; makefile: 9
file content (9 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
use Test::More tests => 1;

use Class::Date;

my $d2 = Class::Date->new('1935-12-23');
my $d1 = Class::Date->new('2008-12-17');
  
my $k = int( (Class::Date->new($d1)-$d2)->year );
is $k => 72, 'gh#3';