Test strings and data structures and show differences if not ok
license: gnu-gpl-v2 OR artistic
install size: 36368
build date: 2019-01-29 19:49:03 +0000
package file: p5-Test-Differences-0.6400nb4.tgz
package size: 13324
When the code you're testing returns multiple lines, records or
data structures and they're just plain wrong, an equivalent to the
Unix diff utility may be just what's needed.
eq_or_diff_...() compares two strings or (limited) data structures
and either emits an ok indication or a side-by-side diff.
Test::Differences is designed to be used with Test.pm and with
Test::Simple, Test::More, and other Test::Builder based testing
modules. As the SYNOPSIS shows, another testing module must be used
as the basis for your test suite.
These functions assume that you are presenting it with "flat"
records, looking like:
- scalars composed of record-per-line
- arrays of scalars,
- arrays of arrays of scalars,
- arrays of hashes containing only scalars
|lib/perl5/vendor_perl/5.28.0/Test/Differences.pm||2015-11-22 07:31||17900 bytes|
|lib/perl5/vendor_perl/5.28.0/x86_64-linux-thread-multi/auto/Test/Differences/.packlist||2019-01-29 12:49||112 bytes|
|lib/perl5/vendor_perl/man/man3/Test::Differences.3||2019-01-29 12:49||18356 bytes|