From 6b2008e791b83d281fe2a566763ee329810dc55b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 5 Aug 2011 13:03:29 -0500 Subject: test updates --- t/07-edge-cases.t | 6 ++++++ 1 file changed, 6 insertions(+) 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'); -- cgit v1.2.3-54-g00ecf