Created
August 29, 2008 02:58
-
-
Save tokuhirom/7887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# THIS TEST DOESN'T PASS WITH PERL 5.10 | |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Test::More tests => 2; | |
use Test::Exception; | |
use Moose::Meta::Class; | |
use Moose::Util; | |
use lib 't/lib', 'lib'; | |
use Role::Child; | |
_test('Role::Parent', 'meth1,meth2'); | |
_test('Role::Child', 'aliased_meth1,meth1,meth2'); | |
sub _test { | |
my ($role, $methods) = @_; | |
is join(',', sort $role->meta->get_method_list), $methods; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment