6 use Test::More tests => 4;
8 use Variable::Magic qw/wizard cast/;
11 my $wiz = wizard free => sub { ++$c };
12 ok($c == 0, 'free : create wizard');
14 my $n = int rand 1000;
20 ok($c == 0, 'free : cast');
22 ok($c == 1, 'free : deletion at the end of the scope');
26 ok($c == 1, 'free : explicit deletion with undef()');