X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F24-free.t;h=89e2c06aab5db85a3813e178f542008f64f5fe13;hb=a86e3e47a167afadf7de1231d6401a1139330ad0;hp=5a90198082d21cb7d587c7db53327f653244010f;hpb=56d08a38a664736a762edf46817a346482c4004f;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/24-free.t b/t/24-free.t index 5a90198..89e2c06 100644 --- a/t/24-free.t +++ b/t/24-free.t @@ -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()');