Bug#419637: [rt.cpan.org #32330] things using Test::Deep::NoTest are untestable with Test::Deep
Alexander Zangerl
az at snafu.priv.at
Tue Nov 4 03:01:50 UTC 2008
On Sat, 04 Oct 2008 19:21:48 +0300, Damyan Ivanov writes:
>Alexander, can you check if the approach below is feasibble?
sorry for the late response. no idea regarding feasibility, i'm not
using 5.10 yet.
>It would
>also be good if you can reply to Fergal's mail[1]
>
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D419637#14
fergal asked for a minimal code example, and here it is.
---notequal.pm--
package notequal;
use Test::Deep::NoTest;
use strict;
sub dud
{
my @a=(qw(this is not a test));
my @b=(qw(and neither is that));
print "these are not equal, are they? ".eq_deeply(\@a,\@b)."\n";
}
1;
--untestable
use notequal;
use strict;
use Test::Deep;
use Test::More qw(no_plan);
cmp_deeply(undef,¬equal::dud);
notequal.pm uses test::deep::notest, and can't be tested using test::deep:
'Can't call method "ok" on an undefined value at
/usr/share/perl5/Test/Deep.pm line 113.'
regards
az
--
+ Alexander Zangerl + DSA 42BD645D + (RSA 5B586291)
I have the diesel-powered Plonkulator warmed up. -- rone
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital Signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20081104/2ed03629/attachment.pgp
More information about the pkg-perl-maintainers
mailing list