summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-08-05 13:01:05 -0500
committerJesse Luehrs <doy@tozt.net>2011-08-05 13:01:05 -0500
commit08873c7d6ecaaf71a4bd7ced39b6ddb7d9c10e26 (patch)
treef70913f49b10a1f693a62d6779af192fba802f39 /t
parentbf460ff3ce8c2e4bff5d7d8cf171f535a116e431 (diff)
downloadpackage-stash-xs-08873c7d6ecaaf71a4bd7ced39b6ddb7d9c10e26.tar.gz
package-stash-xs-08873c7d6ecaaf71a4bd7ced39b6ddb7d9c10e26.zip
use a non-broken test for scalar values (t0m, rafl)
Diffstat (limited to 't')
-rwxr-xr-xt/07-edge-cases.t6
1 files changed, 6 insertions, 0 deletions
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');