8 eval "use Symbol qw/gensym/";
10 plan skip_all => "Symbol::gensym required for testing magic for globs";
15 use Variable::Magic qw/wizard cast dispell/;
21 for (0 .. 4) { return 0 unless $c[$_] == $x[$_]; }
26 my $wiz = wizard get => sub { ++$c[0] },
27 set => sub { ++$c[1] },
28 len => sub { ++$c[2] },
29 clear => sub { ++$c[3] },
30 free => sub { ++$c[4] };
31 ok(check(), 'glob : create wizard');
36 ok(check(), 'glob : cast');
39 ok(check(), 'glob : assign to');
43 ok(check(), 'glob : assign');
49 ok(check(), 'glob : scope end');
52 ok(check(), 'glob : undef');
55 ok(check(), 'glob : dispell');