From: gfx Date: Tue, 17 Nov 2009 05:28:22 +0000 (+0900) Subject: Add tests for accessor robusity X-Git-Tag: 0.40_07~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ce61d034787c3c5ffba15d292a0b1cd861287f0a;p=gitmo%2FMouse.git Add tests for accessor robusity --- 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); +};