]> git.vpit.fr Git - perl/modules/Scalar-Vec-Util.git/blobdiff - t/01-import.t
Add prototypes
[perl/modules/Scalar-Vec-Util.git] / t / 01-import.t
index 939ee229fffa217ca3dc1e19492e3307a789febd..454862e5b957456bf7d8149bb231890b65263529 100644 (file)
@@ -3,11 +3,22 @@
 use strict;
 use warnings;
 
-use Test::More tests => 6;
+use Test::More tests => 2 * 7;
 
 require Scalar::Vec::Util;
 
-for (qw/vfill vcopy vshift veq SVU_PP SVU_SIZE/) {
+my %syms = (
+ vfill    => '$$$$',
+ vcopy    => '$$$$$',
+ veq      => '$$$$$',
+ vshift   => '$$$$;$',
+ vrot     => '$$$$',
+ SVU_PP   => '',
+ SVU_SIZE => '',
+);
+
+for (keys %syms) {
  eval { Scalar::Vec::Util->import($_) };
- ok(!$@, 'import ' . $_);
+ is $@,            '',        "import $_";
+ is prototype($_), $syms{$_}, "prototype $_";
 }