X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F34-glob.t;h=664152da32bc9233af63939c10c6bd99e2df27fd;hb=da422089a9a5dfbf84e72ec3ba867063471ff41c;hp=47e68926b4e04256c0b13741c77bc4ea3f07674b;hpb=505fda7126b01811c0ca990552876a1c6d9dc7c3;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/34-glob.t b/t/34-glob.t index 47e6892..664152d 100644 --- a/t/34-glob.t +++ b/t/34-glob.t @@ -18,23 +18,23 @@ use Variable::Magic qw/cast dispell/; use lib 't/lib'; use Variable::Magic::TestWatcher; -my $wiz = init +my $wiz = init_watcher [ qw/get set len clear free copy dup local fetch store exists delete/ ], 'glob'; local *a = gensym(); -check { cast *a, $wiz } { }, 'cast'; +watch { cast *a, $wiz } { }, 'cast'; -check { local *b = *a } { }, 'assign to'; +watch { local *b = *a } { }, 'assign to'; -check { *a = gensym() } { set => 1 }, 'assign'; +watch { *a = gensym() } { set => 1 }, 'assign'; -check { +watch { local *b = gensym(); - check { cast *b, $wiz } { }, 'cast 2'; + watch { cast *b, $wiz } { }, 'cast 2'; } { }, 'scope end'; -check { undef *a } { }, 'undef'; +watch { undef *a } { }, 'undef'; -check { dispell *a, $wiz } { }, 'dispell'; +watch { dispell *a, $wiz } { }, 'dispell';