X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F27-local.t;h=27dfd8bc2a9556451ac6f001aff0f1e2a76a2d1e;hb=a86e3e47a167afadf7de1231d6401a1139330ad0;hp=9ecddd6b85878c48470d2bfa83024286c3cd714e;hpb=56d08a38a664736a762edf46817a346482c4004f;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/27-local.t b/t/27-local.t index 9ecddd6..27dfd8b 100644 --- a/t/27-local.t +++ b/t/27-local.t @@ -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');