]> git.vpit.fr Git - perl/modules/Sub-Prototype-Util.git/commitdiff
Revamp t/01-import.t
authorVincent Pit <vince@profvince.com>
Thu, 4 Jun 2009 22:22:29 +0000 (00:22 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 4 Jun 2009 22:22:29 +0000 (00:22 +0200)
t/01-import.t

index ef63215864fa960fe40b754c0457632dec37c486..678a0292abde93771a79ecb9b0afe193ca3ca8ff 100644 (file)
@@ -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 $_";
 }