Debian Codegraph @

t/cpanrt-language.t

raw
1 use strict;
2 use warnings;
3 use Test::More tests => 1;
4 use Date::Language;
5
6 # RT#17396: Parse error for french date with 'mars' (march) as month
7 {
8 my $dateP = Date::Language->new('French');
9 my $timestamp = $dateP->str2time('4 mars 2005');
10 my ($ss, $mm, $hh, $day, $month, $year, $zone) = localtime $timestamp;
11 $month++;
12 $year += 1900;
13 my $date = "$day/$month/$year";
14 is($date, "4/3/2005", "RT#17396: French 'mars' parsed correctly");
15 }