]> git.vpit.fr Git - perl/modules/Sub-Prototype-Util.git/blobdiff - t/01-import.t
Update VPIT::TestHelpers to 15e8aee3
[perl/modules/Sub-Prototype-Util.git] / t / 01-import.t
index 30b94d2b55447e43fc8bb70c9e2be1f434f4dea7..678a0292abde93771a79ecb9b0afe193ca3ca8ff 100644 (file)
@@ -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 $_";
 }