X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F001_mouse%2F007-attributes.t;h=925d4c4ee7ec0e97a27d3ae8753d8a21695bdda2;hb=8aba926dbf11e9cf418c7c79b925d15e60e1e990;hp=ae538e6bf487f963980107a1254909963ceb58b9;hpb=920139b3efca66d2caeeef306c97fa0da62c6b73;p=gitmo%2FMouse.git diff --git a/t/001_mouse/007-attributes.t b/t/001_mouse/007-attributes.t index ae538e6..925d4c4 100644 --- a/t/001_mouse/007-attributes.t +++ b/t/001_mouse/007-attributes.t @@ -1,7 +1,7 @@ #!/usr/bin/env perl use strict; use warnings; -use Test::More tests => 18; +use Test::More tests => 21; use Test::Exception; use lib 't/lib'; @@ -62,3 +62,12 @@ $object->rw_attr(100); is $object->rw_attr, 100; is $object->read_attr, 100; +dies_ok { + Class->rw_attr(); +}; +dies_ok { + Class->read_attr(); +}; +dies_ok { + Class->write_attr(42); +};