]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/34-glob.t
Rename test functions init() and check() to init_watcher() and watch()
[perl/modules/Variable-Magic.git] / t / 34-glob.t
index 47e68926b4e04256c0b13741c77bc4ea3f07674b..664152da32bc9233af63939c10c6bd99e2df27fd 100644 (file)
@@ -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';