]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/10-simple.t
Importing Variable-Magic-0.05.tar.gz
[perl/modules/Variable-Magic.git] / t / 10-simple.t
index a5d091701154b54c8aa83487eb61a97ac17b0227..99136bddb1dd0c960dcd1b5c7ea7d045c467e2eb 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 14;
+use Test::More tests => 16;
 
 use Variable::Magic qw/wizard gensig getsig cast dispell/;
 
@@ -32,6 +32,10 @@ $res = eval { dispell $a, $wiz };
 ok(!$@, "re-dispell croaks ($@)");
 ok($res, 're-dispell invalid');
 
+$res = eval { dispell my $b, $wiz };
+ok(!$@, "dispell non-magic object fails ($@)");
+ok($res == 0, 'dispell non-magic object doesn\'t return 0');
+
 $sig = gensig;
 {
  my $wiz = wizard sig => $sig;