Path to this page:
./
devel/p5-Test-Differences,
Test strings and data structures and show differences if not ok
Branch: pkgsrc-2009Q2,
Version: 0.48.01nb1,
Package name: p5-Test-Differences-0.48.01nb1,
Maintainer: pkgsrc-usersWhen 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
Required to run:[
textproc/p5-Text-Diff]
Master sites: (Expand)
SHA1: f3d0deb8beda97558ab45fe3c5035683537d6acd
RMD160: 97ac3312e24c4f3fd06eb74342646181707e4436
Filesize: 8.513 KB
Version history: (Expand)
- (2009-07-09) Package has been reborn
- (2009-07-08) Package added to pkgsrc.se, version p5-Test-Differences-0.48.01nb1 (created)