X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Prototype-Util.git;a=blobdiff_plain;f=t%2F01-import.t;h=678a0292abde93771a79ecb9b0afe193ca3ca8ff;hp=ef63215864fa960fe40b754c0457632dec37c486;hb=4426de02bf958eb75c90d5fc8bf905f6fb079fcb;hpb=59702c5c1ad3c9d634d7fb008862d18d8df0b5ed diff --git a/t/01-import.t b/t/01-import.t index ef63215..678a029 100644 --- a/t/01-import.t +++ b/t/01-import.t @@ -3,11 +3,18 @@ use strict; use warnings; -use Test::More tests => 3; +use Test::More tests => 2 * 3; require Sub::Prototype::Util; -for (qw/flatten recall wrap/) { - 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 $_"; }