Hello and Thank you for DateTime::Format::ISO8601 0.06,
Just wanted to let you know in the year 2010, 4 tests in t/02_examples.t are failing (for me), I also noticed recent failures reported here:
http://www.cpantesters.org/distro/D/DateTime-Format-ISO8601.html#DateTime-Format-ISO8601-0.06
t/02_examples.t ....... 1/174
Show quoted text
Show quoted text
Show quoted text
Show quoted text
My "fix" is:
t/02_examples.t ====
227a228,230
Show quoted text
< is( $dt->year, '2005' );
---
Show quoted text
< is( $dt->year, '2005' );
---
Show quoted text
< is( $dt->year, '2005' );
---
Show quoted text
< is( $dt->year, '2005' );
---
Show quoted text
Cheers,
Peter (Stig) Edwards
Just wanted to let you know in the year 2010, 4 tests in t/02_examples.t are failing (for me), I also noticed recent failures reported here:
http://www.cpantesters.org/distro/D/DateTime-Format-ISO8601.html#DateTime-Format-ISO8601-0.06
t/02_examples.t ....... 1/174
Show quoted text
# Failed test at t/02_examples.t line 231.
# got: '2015'
# expected: '2005'
# got: '2015'
# expected: '2005'
Show quoted text
# Failed test at t/02_examples.t line 239.
# got: '2015'
# expected: '2005'
# got: '2015'
# expected: '2005'
Show quoted text
# Failed test at t/02_examples.t line 247.
# got: '2015'
# expected: '2005'
# got: '2015'
# expected: '2005'
Show quoted text
# Failed test at t/02_examples.t line 254.
# got: '2015'
# expected: '2005'
# Looks like you failed 4 tests of 174.
# got: '2015'
# expected: '2005'
# Looks like you failed 4 tests of 174.
My "fix" is:
t/02_examples.t ====
227a228,230
Show quoted text
> my $year = (localtime())[5] + 1900;
> my $expected_year = substr($year,0,3) . '5';
>
231c234> my $expected_year = substr($year,0,3) . '5';
>
< is( $dt->year, '2005' );
---
Show quoted text
> is( $dt->year, $expected_year );
239c242< is( $dt->year, '2005' );
---
Show quoted text
> is( $dt->year, $expected_year );
247c250< is( $dt->year, '2005' );
---
Show quoted text
> is( $dt->year, $expected_year );
254c257< is( $dt->year, '2005' );
---
Show quoted text
> is( $dt->year, $expected_year );
Cheers,
Peter (Stig) Edwards