update Tue May 18 12:37:00 PDT 2010
[pkgsrc.git] / devel / p5-Test-Differences / DESCR
1 When the code you're testing returns multiple lines, records or
2 data structures and they're just plain wrong, an equivalent to the
3 Unix diff utility may be just what's needed.
4
5 eq_or_diff_...() compares two strings or (limited) data structures
6 and either emits an ok indication or a side-by-side diff.
7 Test::Differences is designed to be used with Test.pm and with
8 Test::Simple, Test::More, and other Test::Builder based testing
9 modules. As the SYNOPSIS shows, another testing module must be used
10 as the basis for your test suite.
11
12 These functions assume that you are presenting it with "flat"
13 records, looking like:
14
15     - scalars composed of record-per-line
16     - arrays of scalars,
17     - arrays of arrays of scalars,
18     - arrays of hashes containing only scalars