Subject: | DateTime objects compare at the nanosecond level |
DateTime objects compare with each other at the nanosecond level. This
means the following test code does not really work.
is $row->t_updated, $row->t_created, 'update and create timestamp';
Test::More 0.96 will no longer stringify its arguments before comparing,
this was considered a bug. Apologies for the inconvenience. This
reveals string overloaded objects which do not implement a comparison
operator, which is generally an oversight rather than a feature. Test
with Test::More 0.95_02 and release ASAP. Test::More 0.96 is holding
off until all affected modules are informed.
The fact that these two times are different at all reveals that the
test's attempts at freezing time is not actually working. The test will
eventually fail regardless of Test::More changes because the created and
update times cross a second boundary.