X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F01-import.t;h=de0260adc6318df792db73f55062767bd4a997f6;hb=ac1ed676fcda0ff05185eb9a0baded7d79af0150;hp=b1c2b17a0c7064d58c9c05014adc3ef5d01a061f;hpb=b1705371d0b8be388540f125bde19d10e3e14ea8;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/01-import.t b/t/01-import.t index b1c2b17..de0260a 100644 --- a/t/01-import.t +++ b/t/01-import.t @@ -3,11 +3,30 @@ use strict; use warnings; -use Test::More tests => 10; +use Test::More tests => 2 * 15; require Scope::Upper; -for (qw/reap localize localize_elem localize_delete TOP HERE UP DOWN SUB EVAL/) { +my %syms = ( + reap => '&;$', + localize => '$$;$', + localize_elem => '$$$;$', + localize_delete => '$$;$', + unwind => undef, + want_at => ';$', + uplevel => '&@', + TOP => '', + HERE => '', + UP => ';$', + SUB => ';$', + EVAL => ';$', + SCOPE => ';$', + CALLER => ';$', + SU_THREADSAFE => '', +); + +for (keys %syms) { eval { Scope::Upper->import($_) }; - is($@, '', 'import ' . $_); + is $@, '', "import $_"; + is prototype($_), $syms{$_}, "prototype $_"; }