X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F34-localize_elem-magic.t;h=307db88d298f9544089ab024e0e168a81e719cd1;hb=e7846e7f6fded4c4a3139054c5206c1480711867;hp=7a99222427567b767d7510b0d9804ef1ad17898e;hpb=0a6221d3f467b5f819e3c119b4cda0218399cb51;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/34-localize_elem-magic.t b/t/34-localize_elem-magic.t index 7a99222..307db88 100644 --- a/t/34-localize_elem-magic.t +++ b/t/34-localize_elem-magic.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Scope::Upper qw/localize_elem UP HERE/; +use Scope::Upper qw; use Test::More tests => 8; @@ -20,9 +20,10 @@ use Test::More tests => 8; our @a; -tie @a, 'Scope::Upper::Test::TiedArray'; { - local @a = (5 .. 7); + local @a; + tie @a, 'Scope::Upper::Test::TiedArray'; + @a = (5 .. 7); { localize_elem '@a', 4 => 12 => HERE; is_deeply \@a, [ 5 .. 7, undef, 12 ], 'localize_elem @incomplete_tied_array, $nonexistent, 12 => HERE [ok]';