Subject: | t/01.methods.t fails |
I have no idea why, but after modifying the test to use cmp_ok I get
this:
perl -Ilib t/01.methods.t
1..22
ok 1 - use DateTime::Format::Human::Duration;
# Testing DateTime::Format::Human::Duration 0.0.1
ok 2 - Obj creation
ok 3 - No difference w/ default no_time
ok 4 - No difference w/ no_time
ok 5 - No difference w/ empty no_time
ok 6 - 1 value
ok 7 - Reverse/Negative is still positive (not "no time")
ok 8 - 2 (singular values)
ok 9 - 2 values (mixed)
ok 10 - > 2 values (3)
not ok 11 - > 2 values (5)
# Failed test '> 2 values (5)'
# at t/01.methods.t line 47.
# got: '9 months, 2 days, 4 hours, 17 minutes, 33 seconds, and
345000028 nanoseconds'
# expected: '9 months, 1 day, 4 hours, 17 minutes, 33 seconds, and
345000028 nanoseconds'
ok 12 - string with %s
ok 13 - string w/ out %s
ok 14 - DateTime object method format_duration_between()
ok 15 - $a->format_duration_between($b): $a < $b = future
ok 16 - $a->format_duration_between($b): $a > $b = past
ok 17 - clone exmple
ok 18 - Ambiguous duration (baseless)
ok 19 - locale key as string format_duration()
ok 20 - locale key as $DateTime obj format_duration()
ok 21 - locale key as $DateTime->{'locale'} format_duration()
ok 22 - Object's locale used in format_duration_between()
# Looks like you failed 1 test of 22.