X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F01-import.t;h=678a0292abde93771a79ecb9b0afe193ca3ca8ff;hb=HEAD;hp=30b94d2b55447e43fc8bb70c9e2be1f434f4dea7;hpb=4b145ee918e94698fe49c6e9240d50cfb2a36c75;p=perl%2Fmodules%2FSub-Prototype-Util.git diff --git a/t/01-import.t b/t/01-import.t index 30b94d2..678a029 100644 --- a/t/01-import.t +++ b/t/01-import.t @@ -3,11 +3,18 @@ use strict; use warnings; -use Test::More tests => 2; +use Test::More tests => 2 * 3; require Sub::Prototype::Util; -for (qw/flatten recall/) { - eval { Sub::Prototype::Util->import($_) }; - ok(!$@, 'import ' . $_); +my %syms = ( + flatten => undef, + recall => undef, + wrap => undef, +); + +for (keys %syms) { + eval { Scope::Upper->import($_) }; + is $@, '', "import $_"; + is prototype($_), $syms{$_}, "prototype $_"; }