From: Jesse Luehrs Date: Fri, 5 Aug 2011 18:03:29 +0000 (-0500) Subject: test updates X-Git-Tag: 0.31~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6b2008e791b83d281fe2a566763ee329810dc55b;p=gitmo%2FPackage-Stash.git test updates --- diff --git a/t/07-edge-cases.t b/t/07-edge-cases.t index acd92e8..6bed48e 100755 --- a/t/07-edge-cases.t +++ b/t/07-edge-cases.t @@ -63,6 +63,12 @@ is(exception { $Bar->add_symbol('$foo', \$foo) }, undef, "can add PVIV values"); is(exception { $Bar->add_symbol('$bar', \$bar) }, undef, "can add PVNV values"); +is(exception { bless \$bar, 'Foo'; $Bar->add_symbol('$bar2', $bar) }, undef, + "can add PVMG values"); +is(exception { $Bar->add_symbol('$baz', qr/foo/) }, undef, + "can add regex values"); +is(exception { undef $bar; $Bar->add_symbol('$quux', \$bar) }, undef, + "can add undef values that aren't NULL"); use_ok('CompileTime');