X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F27-local.t;h=086d619d9a081d7cf8ac79403e26ef83851204de;hb=9313f2dc8e1f534131fee3e6235f4a533396a0ac;hp=650e115e70647969e6dfba78b56742bc16cce2bb;hpb=17a9ff0efce08a362dce5b81091f5be3f345251a;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/27-local.t b/t/27-local.t index 650e115..086d619 100644 --- a/t/27-local.t +++ b/t/27-local.t @@ -5,7 +5,7 @@ use warnings; use Test::More; -use Variable::Magic qw/cast MGf_LOCAL/; +use Variable::Magic qw; 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';