Commit graph

9 commits

Author SHA1 Message Date
sno
4a260dd411 Updating package for devel/p5-Test-Deep from 0.104 to 0.106
pkgsrc changes:
  - Add license (perl license)
  - Bump version dependency of Test::Tester (see Makefile.PL for details)

Upstream changes:
0.106

Release after dev.

0.105-dev

Fix for perl 5.010.1 - the code to check the version and act correctly
on regexp refs treated .1 as behaving like 5.011.
2009-08-18 16:32:39 +00:00
sno
0540037a23 PkgSrc changes:
- Updating package to 0.104

Upstream changes:
0.104

Document behaviour of cmp_bag when a non ARRAY-ref argument is passed
to it. Explicity test for this a die with a useful message.

Document and export cmp_details and deep_diag, thanks to Tom Hukins
for the patch.
2009-04-12 10:26:45 +00:00
he
b021813da0 Bump the PKGREVISION for all packages which depend directly on perl,
to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0.

The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=...").
2008-10-19 19:17:40 +00:00
rhaen
64ddbf2e62 - updated to 0.103
- took maintainership
- Makefile cleanup

Changelog:
0.103

Detect whether isa() is being called with 1 or 2 arguments and
dispatch to the correct function. This is hacky but fixes the problem
of clashing with UNIVERSAL::isa().

0.102

Behave well when a code comparator doesn't give diagnostics. Thanks to
Alex Kapranoff.
2008-07-15 22:19:37 +00:00
abs
4a7275c07e Updated devel/Test-Deep to 0.101
0.101

Fix an overloading problem with All and Any. Thanks to Kostas
Chatzikokolakis for reporting the bug and especially for explaining
how to fix it :)

Added a nasty hack to smooth over a problem in Test::Tester.

0.100

Apply patch from Andreas Koenig (ANDK) to cope with Perl 5.11's new
REGEXP objects.

0.099

Don't explode on perl's that don't have weakrefs. If they're not
available, just don't weaken the refs. It means refs can be cached for
longer than desirable but it's better than explodiing.

This doesn't fix all of te problems with perl 5.005 but I'm pushing it
out because the previous version number upsets CPAN.pm.

0.098

Cleaned up Test::Deep::NoTest by making it call Test::Deep's import,
that way it will always be in sync for exports. Also added some POD
docs.

Added notest_extra.t to check that things are correctly exported and
working.

Add cmp_details but left it undocumented. It manages localising the
stack etc. Factored eq_deeply and cmp_deeply through that. This meant
adding an icky hack into deep_diag. I should clean that whole thing up.

Remove $name from params of eq_deeply, in code and docs, it was unused.

0.097

Fixed doc typo for re().

Fix diagnostics for code(), it was always printing undef instead of
the got value.
2008-05-28 21:25:40 +00:00
jlam
56ba4d2690 Remove empty PLISTs from pkgsrc since revision 1.33 of plist/plist.mk
can handle packages having no PLIST files.
2007-10-25 16:54:26 +00:00
obache
bd26c27dc0 Update p5-Test-Deep to 0.096.
Changes:
0.096

%WrapCache was keeping references to external data. It's now local()ised at the start of a comparison just like the other caches (why I didn't do that when I added it, I don't know). Thanks to Matthijs Bomhoff for reporting the problem.

0.095

Docs and code didn't match, useclass was actually requireclass, available as
both now

0.094

Changed Set and Bag to no longer issue warnings when undefs are
present. Needed to make the sort and the diagnotics
undef-aware. Thanks to Colin Kuskie for pointing this out.

Added tests for this.

0.093

Fixed inifinte recursion when adding comparators into bags. That whole area is unpleasant - conceptually as well as implementation-wise. Comparators no longer inherit a compare method, so we only call the specialised compare if it exists, otherwise we just do normal deep comparison.

Removed a debugging print.
2006-10-28 08:50:59 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
wiz
cb5c058291 Initial import of p5-Test-Deep:
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.
2005-11-23 22:00:26 +00:00