X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F029-new.t;fp=t%2F029-new.t;h=d387bdf01d44c5d245ef3ea894cd13b185fe5d21;hb=069668c4fbc88fc3a347c4dbab98f031835edb75;hp=9ad1721523e1fe4badab23dd4c93cc040ec6954b;hpb=39d3892835648e27207ffb598b1d55799007c376;p=gitmo%2FMouse.git diff --git a/t/029-new.t b/t/029-new.t index 9ad1721..d387bdf 100644 --- a/t/029-new.t +++ b/t/029-new.t @@ -1,7 +1,7 @@ #!/usr/bin/env perl use strict; use warnings; -use Test::More tests => 4; +use Test::More tests => 5; use Test::Exception; do { @@ -28,3 +28,7 @@ throws_ok { Class->new('non-hashref scalar'); } qr/Single parameters to new\(\) must be a HASH ref/; +lives_ok { + Class->new(undef); +} "Class->new(undef) specifically doesn't throw an error. weird" +