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
| System | Port | Version |
|---|---|---|
| NetBSD | devel/p5-Test-Differences | 0.7200nb1 |
| FreeBSD | devel/p5-Test-Differences | 0.710,1 |
| OpenBSD | devel/p5-Test-Differences | 0.72 |
| DragonFly | devel/p5-Test-Differences | 0.710,1 |
| MidnightBSD | devel/p5-Test-Differences | 0.710,1 |
| HardenedBSD | devel/p5-Test-Differences | 0.710,1 |
| GhostBSD | devel/p5-Test-Differences | 0.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.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.7200nb1 |
| NetBSD 10.1 aarch64 | 0.7200 |
| SmartOS / illumos x86_64 | 0.7300 |
| macOS 15 arm64 | 0.7300 |