Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Deep CPAN distribution.

Report information
The Basics
Id: 77804
Status: resolved
Priority: 0/
Queue: Test-Deep

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.109
Fixed in: (no value)



Subject: listmethods() fails in perl5.16.0
Consider: use strict; use warnings; use Test::More; use Test::Deep; { package Foo; sub data { qw(foo 1) }; } cmp_deeply( 'Foo', listmethods(data => [ foo => 1 ]), ); This fails on perl5.16.0 with: not ok 1 # Failed test at testdeep.t line 12. # Compared [$data->data] # got : Does not exist # expect : ARRAY(0x2263de8) # Tests were run but no plan was declared and done_testing() was not seen.
Ok, this is a little odd... the unit tests I just added to the git repository behave identically on my 5.14.2 and 5.16.0 installations (although these are on different machines, as that might be a factor) -- the first section passes on both versions, even though the tests I added (using a class name rather than object reference) are intended to exactly duplicate the conditions I originally documented. The original short test that I wrote (testdeep.t, quoted above) does pass on 5.14.2, but fails on 5.16.0. Therefore, I am unable at this point to clearly identify where the problem exists.
Subject: listmethods() fails in v0.109
It would appear that Ricardo has already fixed this issue in the most recent commit (April 1) - could this please be released? :) (I dug more to determine why tests passed on my 5.14.2 installation, and found that I only had 0.108 installed there... and I also discovered *I caused this bug originally* in my ->can and ->isa changes for 0.109!!! Therefore it is only just that I have been bitten by the results of that change. A thousand apologizes!!)
Released, fixed in 0.110! -- rjbs