From: Stevan Little Date: Fri, 21 Sep 2007 21:59:17 +0000 (+0000) Subject: you can never have enough tests :) X-Git-Tag: 0_44~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aef6c672875431b3305ab289cfd96ed489629dea;p=gitmo%2FClass-MOP.git you can never have enough tests :) --- diff --git a/t/005_attributes.t b/t/005_attributes.t index 239d2a2..a295619 100644 --- a/t/005_attributes.t +++ b/t/005_attributes.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 47; +use Test::More tests => 50; use Test::Exception; BEGIN { @@ -21,6 +21,10 @@ my $BAZ_ATTR = Class::MOP::Attribute->new('$baz' => ( my $BAR_ATTR_2 = Class::MOP::Attribute->new('$bar'); +is($FOO_ATTR->name, '$foo', '... got the attributes name correctly'); +is($BAR_ATTR->name, '$bar', '... got the attributes name correctly'); +is($BAZ_ATTR->name, '$baz', '... got the attributes name correctly'); + { package Foo; use metaclass;