]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/27-local.t
Switch to qw<>
[perl/modules/Variable-Magic.git] / t / 27-local.t
index 650e115e70647969e6dfba78b56742bc16cce2bb..086d619d9a081d7cf8ac79403e26ef83851204de 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 
 use Test::More;
 
-use Variable::Magic qw/cast MGf_LOCAL/;
+use Variable::Magic qw<cast MGf_LOCAL>;
 
 if (MGf_LOCAL) {
  plan tests => 2 * 3 + 1 + 1;
@@ -16,11 +16,11 @@ if (MGf_LOCAL) {
 use lib 't/lib';
 use Variable::Magic::TestWatcher;
 
-my $wiz = init 'local', 'local';
+my $wiz = init_watcher 'local', 'local';
 
 our $a = int rand 1000;
 
-my $res = check { cast $a, $wiz } { }, 'cast';
+my $res = watch { cast $a, $wiz } { }, 'cast';
 ok $res, 'local: cast succeeded';
 
-check { local $a } { local => 1 }, 'localized';
+watch { local $a } { local => 1 }, 'localized';