From: Vincent Pit Date: Thu, 4 Jun 2009 22:22:29 +0000 (+0200) Subject: Revamp t/01-import.t X-Git-Tag: v0.09~5 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Prototype-Util.git;a=commitdiff_plain;h=4426de02bf958eb75c90d5fc8bf905f6fb079fcb Revamp t/01-import.t --- 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 $_"; }