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.
3 out of 3 found this review helpful. Was this review helpful to you? Yes No
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.
2 out of 3 found this review helpful. Was this review helpful to you? Yes No
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.
7 out of 7 found this review helpful. Was this review helpful to you? Yes No