| Module Info
| Add a review of Test-Differences
A excellent module for debugging failing tests with complex data structures.
In case you haven't seen the Test::Differences output have a look at the examples in the docs.
This module is a genuine time saver.
The only reason I used Test instead of Test::More was the automatic diff on multiline strings that Test did. Yet, Test::Differences provides that feature in a much better format: the differences are shown side-by-side, which is easier to see compared to the list of "-/+" pairs displayed by Test.
I haven't used other methods than eq_or_diff, but that one was extremely straightforward and easy to use.
A real lifesaver the few occations when you have two large pieces of text that don't match and you need to find out exactly how.
I especially like the way newlines is indicated as \n in the diff. That, and other convenient touches, makes this module stand out.