./devel/p5-Test-Deep, Perl5 module to test deep structures

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.127nb1, Package name: p5-Test-Deep-1.127nb1, Maintainer: pkgsrc-users

Test::Deep gives you very flexible ways to check that the result
you got is the result you were expecting. At its 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 = 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, = is no
good and you must use pattern matching instead. Test::Deep provides
pattern matching for complex data structures.


Required to run:
[lang/perl5] [devel/p5-Test-Simple]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)

SHA1: 495497b21747b834e6088c15397a3b9180d5506f
RMD160: bd2faa1abc841aef2c2af06b490228e97e14ea0c
Filesize: 40.631 KB

Version history: (Expand)


CVS history: (Expand)


   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2017-05-05 02:15:53 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Test-Deep to 1.127
-----------------------------------
1.127     2017-05-04
        - no code changes from previous release

1.126_001 2017-04-17
        - do not eagerly convert simple scalars into tests in the all, any, and
          none tests; this was breaking LeafWrapper application
   2017-01-02 02:13:29 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.126

Upstream changes:
1.126     2016-12-27
        - no changes since v1.125_001

1.125_001 2016-12-27
        - if objects in the "expected" structured have an as_test_deep_cmp
          method, it will be called and its return (which should be a
          Test::Deep::Cmp object) will be used as the test for that location in
          the structure
        - internal undocumented class_base routine has been replaced
          with a different, clearly private routine
        - the LeafWrapper is also used for objects with an unknown reftype
          (like LVALUE or other weird ones)
   2016-11-07 15:12:59 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Test-Deep to 1.124
------------------------------------
1.124     2016-11-05
- avoid an uninitialized warning when array_each() compares to a
  non-reference (thanks, Максим Вуец!, Maxim Vuets)
   2016-09-12 14:28:06 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.123

Upstream changes:
1.123     2016-09-09
        - remove test suite reliance on "." appearing @INC (thanks, \ 
Graham Knop
          and Karen Etheridge!)
        - when an object with stringification overloading fails to match a
          "re" test, its stringification is included in the diagnostics

1.122     2016-09-07
        - added $Test::Deep::LeafWrapper to control the behavior of simple
          values in the "expected" definition; by default, they are \ 
treated as
          shallow($x) tests, but you can now say (for example)
          C<< $Test::Deep::LeafWrapper = \&str >> to always \ 
treat the got value
          as a string, even if blessed, etc.

1.121_001 2016-07-19
        - documentation improvements
        - avoid a few evals, localize $@ in a few places where eval is used
        - good bye tabs, hello spaces
   2016-06-08 21:25:20 by Thomas Klausner | Files touched by this commit (2236) | Package updated
Log message:
Bump PKGREVISION for perl-5.24.
   2016-05-03 12:54:58 by Thomas Klausner | Files touched by this commit (78)
Log message:
Reset maintainer (observer now).
   2016-04-15 12:35:44 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Update p5-Test-Deep to 1.120.

0.120     2015-11-27
        - no changes since 0.119_01

0.119_01  2015-11-19
        - add none() test; it's like any(), but negative
        - fix stringification of any() expectations