6 use Test::More tests => 10;
8 use Variable::Magic qw/wizard cast dispell/;
14 for (0 .. 4) { return 0 unless $c[$_] == $x[$_]; }
19 my $wiz = wizard get => sub { ++$c[0] },
20 set => sub { ++$c[1] },
21 len => sub { ++$c[2] },
22 clear => sub { ++$c[3] },
23 free => sub { ++$c[4] };
24 ok(check(), 'code : create wizard');
31 ok(check(), 'code : cast');
35 ok(check(), 'code : assign to');
39 ok(check(), 'code : interpolate');
42 ok(check(), 'code : reference');
46 ok(check(), 'code : assign');
49 ok(check(), 'code : call');
56 ok(check(), 'code : scope end');
60 ok(check(), 'code : undef');
63 ok(check(), 'code : dispell');