BSD Ports

devel/p5-Test-Differences 0.7200nb1 NetBSD

Test strings and data structures and show differences if not ok

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
f9839e6a10
License
gnu-gpl-v2 OR artistic
Categories
devel, perl5
Package size
12.6 KiB, 35.9 KiB installed

Description

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

In the other systems

SystemPortVersion
NetBSDdevel/p5-Test-Differences0.7200nb1
FreeBSDdevel/p5-Test-Differences0.710,1
OpenBSDdevel/p5-Test-Differences0.72
DragonFlydevel/p5-Test-Differences0.710,1
MidnightBSDdevel/p5-Test-Differences0.710,1
HardenedBSDdevel/p5-Test-Differences0.710,1
GhostBSDdevel/p5-Test-Differences0.710,1

Install

Binary package:

pkgin install p5-Test-Differences

From pkgsrc:

cd /usr/pkgsrc/devel/p5-Test-Differences && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.7200nb1
NetBSD 10.1 aarch640.7200
SmartOS / illumos x86_640.7300
macOS 15 arm640.7300

Dependencies

Run dependencies 2

Commit history 2

DateCommitCreditsLog message
f9839e6a10 wiz p5-Test-Differences: update to 0.7300.
0.73 2026-10-03 - Changes to tests only, to cope with changes to how line numbers are reported in what will become perl 5.46 (thanks to Richard Leach)
618415630a wiz *: recursive bump for perl5 5.44.0