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.