]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/27-local.t
Importing Variable-Magic-0.13.tar.gz
[perl/modules/Variable-Magic.git] / t / 27-local.t
index 9ecddd6b85878c48470d2bfa83024286c3cd714e..27dfd8bc2a9556451ac6f001aff0f1e2a76a2d1e 100644 (file)
@@ -15,15 +15,15 @@ if (MGf_LOCAL) {
 
 my $c = 0;
 my $wiz = wizard 'local' => sub { ++$c };
-ok($c == 0, 'local : create wizard');
+is($c, 0, 'local : create wizard');
 
 local $a = int rand 1000;
 my $res = cast $a, $wiz;
-ok($res,    'local : cast succeeded');
-ok($c == 0, 'local : cast didn\'t triggered the callback');
+ok($res,  'local : cast succeeded');
+is($c, 0, 'local : cast didn\'t triggered the callback');
 
 {
  local $a;
ok($c == 1, 'local : localized');
is($c, 1, 'local : localized');
 }
-ok($c == 1, 'local : end of local scope');
+is($c, 1, 'local : end of local scope');