libtest-deep-perl 1.130-ok1 source package in openKylin
Changelog
libtest-deep-perl (1.130-ok1) yangtze; urgency=medium * Build for openkylin. -- zhangyichun <email address hidden> Mon, 22 Aug 2022 16:09:36 +0800
libtest-deep-perl (1.130-ok1) yangtze; urgency=medium * Build for openkylin. -- zhangyichun <email address hidden> Mon, 22 Aug 2022 16:09:36 +0800
Series | Published | Component | Section |
---|
File | Size | SHA-256 Checksum |
---|---|---|
libtest-deep-perl_1.130.orig.tar.gz | 40.9 KiB | 4064f494f5f62587d0ae501ca439105821ee5846c687dc6503233f55300a7c56 |
libtest-deep-perl_1.130-ok1.debian.tar.xz | 2.1 KiB | b46b9bb92c62dfb3d654f5429bae5d8b024ae6a0d26c7331087de4a0e3171d8e |
libtest-deep-perl_1.130-ok1.dsc | 1.9 KiB | fb0404937c009381339d3e4820bf777532a7d842e06e56533da62889ee824247 |
Test::Deep gives you very flexible ways to check that the result you got is
the result you were expecting. At it's simplest it compares two structures by
going through each level, ensuring that the values match, that arrays and
hashes have the same elements and that references are blessed into the correct
class. It also handles circular data structures without getting caught in an
infinite loop.
.
Where it becomes more interesting is in allowing you to do something besides
simple exact comparisons. With strings, the eq operator checks that 2 strings
are exactly equal but sometimes that's not what you want. When you don't know
exactly what the string should be but you do know some things about how it
should look, eq is no good and you must use pattern matching instead.
Test::Deep provides pattern matching for complex data structures