X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F005_attributes.t;h=63158f157ba6c2b11abd089c9e01a918622d73e1;hb=c20522bd825495befde91f3201a71909d80dd31c;hp=d1ac414e6078d6470474a1f96ad943473520f675;hpb=222860635b059db73389c69475bccc62dfa753a4;p=gitmo%2FClass-MOP.git diff --git a/t/005_attributes.t b/t/005_attributes.t index d1ac414..63158f1 100644 --- a/t/005_attributes.t +++ b/t/005_attributes.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 40; +use Test::More tests => 43; use Test::Exception; BEGIN { @@ -78,6 +78,10 @@ my $BAR_ATTR_2 = Class::MOP::Attribute->new('$bar'); my $meta = Baz->meta; isa_ok($meta, 'Class::MOP::Class'); + is($meta->find_attribute_by_name('$bar'), $BAR_ATTR, '... got the right attribute for "bar"'); + is($meta->find_attribute_by_name('$baz'), $BAZ_ATTR, '... got the right attribute for "baz"'); + is($meta->find_attribute_by_name('$foo'), $FOO_ATTR, '... got the right attribute for "foo"'); + is_deeply( [ sort { $a->name cmp $b->name } $meta->compute_all_applicable_attributes() ], [