X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F34-localize_elem-magic.t;h=361f77d90a3ddccd50d2e537efccc1d694535cef;hb=a8e609b45a64bb946197d3f4b444a07e86c52209;hp=7a99222427567b767d7510b0d9804ef1ad17898e;hpb=8d81fa027a6a701f6b8a4e96dc04a36a09295210;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/34-localize_elem-magic.t b/t/34-localize_elem-magic.t index 7a99222..361f77d 100644 --- a/t/34-localize_elem-magic.t +++ b/t/34-localize_elem-magic.t @@ -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]';