6 use Test::More tests => 6;
8 use Variable::Magic qw/wizard cast/;
11 my $wiz = wizard get => sub { ++$c };
12 ok($c == 0, 'get : create wizard');
14 my $n = int rand 1000;
18 ok($c == 0, 'get : cast');
21 ok($c == 1, 'get : assign to');
22 ok($b == $n, 'get : assign to correctly');
25 ok($c == 2, 'get : interpolate');
26 ok($b eq "X${n}Y", 'get : interpolate correctly');