Skip Menu |

This queue is for tickets about the DateTime-Util-Calc CPAN distribution.

Report information
The Basics
Id: 24808
Status: open
Priority: 0/
Queue: DateTime-Util-Calc

People
Owner: Nobody in particular
Requestors: SMPETERS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.12
  • 0.12_02
Fixed in: (no value)



Subject: Test failures in t/06-moment.t
With versions 0.12_2 and 0.12, I have test failures in t/06-moment.t. Looking at looking at CPAN Testers (http://cpantesters.perl.org/show/DateTime-Util-Calc.html#DateTime-Util-Calc-0.12), I'm no the only one with failures. Please see my test results below. t/06-moment....1..32 ok 1 - use DateTime::Util::Calc; ok 2 - use DateTime; ok 3 - Moment from DT: 2003-06-25T04:40:16 -> 731391.486296 ok 4 - DT from moment: 731391.486296 -> 2003-06-25T04:40:16 isa DateTime not ok 5 - DT diff -> 42016 # Failed test 'DT diff -> 42016' # at t/06-moment.t line 34. ok 6 - Moment from DT: 2003-06-25T11:40:16 -> 731391.486296 ok 7 - DT from moment: 731391.486296 -> 2003-06-25T11:40:16 isa DateTime not ok 8 - DT diff -> 42016 # Failed test 'DT diff -> 42016' # at t/06-moment.t line 34. ok 9 - Moment from DT: 1978-01-08T12:23:08 -> 722092.849398 ok 10 - DT from moment: 722092.849398 -> 1978-01-08T12:23:08 isa DateTime not ok 11 - DT diff -> 73388 # Failed test 'DT diff -> 73388' # at t/06-moment.t line 34. ok 12 - Moment from DT: 1978-01-08T20:23:08 -> 722092.849398 ok 13 - DT from moment: 722092.849398 -> 1978-01-08T20:23:08 isa DateTime not ok 14 - DT diff -> 73388 # Failed test 'DT diff -> 73388' # at t/06-moment.t line 34. ok 15 - Moment from DT: 1977-01-26T05:41:24 -> 721745.570417 ok 16 - DT from moment: 721745.570417 -> 1977-01-26T05:41:24 isa DateTime not ok 17 - DT diff -> 49284 # Failed test 'DT diff -> 49284' # at t/06-moment.t line 34. ok 18 - Moment from DT: 1977-01-26T13:41:24 -> 721745.570417 ok 19 - DT from moment: 721745.570417 -> 1977-01-26T13:41:24 isa DateTime not ok 20 - DT diff -> 49284 # Failed test 'DT diff -> 49284' # at t/06-moment.t line 34. ok 21 - Moment from DT: 1992-08-31T22:12:23 -> 727442.216933 ok 22 - DT from moment: 727442.216933 -> 1992-08-31T22:12:23 isa DateTime not ok 23 - DT diff -> 18743 # Failed test 'DT diff -> 18743' # at t/06-moment.t line 34. ok 24 - Moment from DT: 1992-09-01T05:12:23 -> 727442.216933 ok 25 - DT from moment: 727442.216933 -> 1992-09-01T05:12:23 isa DateTime not ok 26 - DT diff -> 18743 # Failed test 'DT diff -> 18743' # at t/06-moment.t line 34. ok 27 - Moment from DT: 1982-07-18T04:29:06 -> 723744.478542 ok 28 - DT from moment: 723744.478542 -> 1982-07-18T04:29:06 isa DateTime not ok 29 - DT diff -> 41346 # Failed test 'DT diff -> 41346' # at t/06-moment.t line 34. ok 30 - Moment from DT: 1982-07-18T11:29:06 -> 723744.478542 ok 31 - DT from moment: 723744.478542 -> 1982-07-18T11:29:06 isa DateTime not ok 32 - DT diff -> 41346 # Failed test 'DT diff -> 41346' # at t/06-moment.t line 34. # Looks like you failed 10 tests of 32. dubious Test returned status 10 (wstat 2560, 0xa00) DIED. FAILED tests 5, 8, 11, 14, 17, 20, 23, 26, 29, 32 Failed 10/32 tests, 68.75% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/06-moment.t 10 2560 32 10 5 8 11 14 17 20 23 26 29 32 Failed 1/1 test scripts. 10/32 subtests failed. Files=1, Tests=32, 4 wallclock secs ( 1.05 cusr + 0.02 csys = 1.07 CPU) Failed 1/1 test programs. 10/32 subtests failed.
On Mon Feb 05 11:31:43 2007, SMPETERS wrote: Show quoted text
> With versions 0.12_2 and 0.12, I have test failures in t/06-moment.t. > Looking at looking at CPAN Testers > (http://cpantesters.perl.org/show/DateTime-Util-Calc.html#DateTime- > Util-Calc-0.12), > I'm no the only one with failures. Please see my test results below. > > t/06-moment....1..32 > ok 1 - use DateTime::Util::Calc; > ok 2 - use DateTime; > ok 3 - Moment from DT: 2003-06-25T04:40:16 -> 731391.486296 > ok 4 - DT from moment: 731391.486296 -> 2003-06-25T04:40:16 isa > DateTime > not ok 5 - DT diff -> 42016 > > # Failed test 'DT diff -> 42016' > # at t/06-moment.t line 34. > ok 6 - Moment from DT: 2003-06-25T11:40:16 -> 731391.486296 > ok 7 - DT from moment: 731391.486296 -> 2003-06-25T11:40:16 isa > DateTime > not ok 8 - DT diff -> 42016
[...] Show quoted text
> # Looks like you failed 10 tests of 32. > dubious > Test returned status 10 (wstat 2560, 0xa00) > DIED. FAILED tests 5, 8, 11, 14, 17, 20, 23, 26, 29, 32 > Failed 10/32 tests, 68.75% okay > Failed Test Stat Wstat Total Fail List of Failed >
------------------------------------------------------------------------------- Show quoted text
> t/06-moment.t 10 2560 32 10 5 8 11 14 17 20 23 26 29 32 > Failed 1/1 test scripts. 10/32 subtests failed. > Files=1, Tests=32, 4 wallclock secs ( 1.05 cusr + 0.02 csys = 1.07 > CPU) > Failed 1/1 test programs. 10/32 subtests failed.
It seems that in these cases the prerequisites are too low. I did an analysis of the cpan testers reports and got the following result: mod:Math::BigFloat: 0.02: FAIL: 3 1.40: FAIL: 4 1.42: FAIL: 2 1.44: FAIL: 2 1.47: FAIL: 3 1.51: FAIL: 28 1.53: PASS: 1 1.54: PASS: 2 1.57: PASS: 4 1.58: PASS: 24 1.59: PASS: 79 1.60: PASS: 84 mod:Math::BigInt: 0.01: FAIL: 3 1.66: FAIL: 4 1.68: FAIL: 2 1.70: FAIL: 2 1.73: FAIL: 3 1.77: FAIL: 28 1.79: PASS: 1 1.82: PASS: 2 1.86: PASS: 4 1.87: PASS: 21 1.88: PASS: 82 1.89: PASS: 84 So either Math::BigFloat 1.53 or Math::BigInt 1.79 or both are necessary. In fact, if I force the newest versions of these modules than the test suite passes. Previously it failed. Regards, Slaven