Subject: | dodgy sort test for DateTime |
Date: | Mon, 15 Mar 2010 20:19:11 +0000 |
To: | bug-DateTime [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
In DateTime-0.54, the test script t/29overload.t has a test of cmp
overloading, via sort, that is liable to fail because the correct output
of the sort is not fully determined. A DateTime object and a string
representing the same date are expected to sort equally, so may appear
in either order in the output from sort. False test failures arise if
they appear in the opposite order from the supplied `expected' output.
Attached patch fixes by flattening all the values to plain strings.
-zefram
Message body is not shown because sender requested not to inline it.