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