]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/24-free.t
Importing Variable-Magic-0.13.tar.gz
[perl/modules/Variable-Magic.git] / t / 24-free.t
index 5a90198082d21cb7d587c7db53327f653244010f..89e2c06aab5db85a3813e178f542008f64f5fe13 100644 (file)
@@ -9,7 +9,7 @@ use Variable::Magic qw/wizard cast/;
 
 my $c = 0;
 my $wiz = wizard free => sub { ++$c };
-ok($c == 0, 'free : create wizard');
+is($c, 0, 'free : create wizard');
 
 my $n = int rand 1000;
 
@@ -17,10 +17,10 @@ my $n = int rand 1000;
  my $a = $n;
 
  cast $a, $wiz;
ok($c == 0, 'free : cast');
is($c, 0, 'free : cast');
 }
-ok($c == 1, 'free : deletion at the end of the scope');
+is($c, 1, 'free : deletion at the end of the scope');
 
 my $a = $n;
 undef $n;
-ok($c == 1, 'free : explicit deletion with undef()');
+is($c, 1, 'free : explicit deletion with undef()');