X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScalar-Vec-Util.git;a=blobdiff_plain;f=t%2F01-import.t;h=454862e5b957456bf7d8149bb231890b65263529;hp=939ee229fffa217ca3dc1e19492e3307a789febd;hb=dec1755eec42f54c4d57813ed03393c0f765a699;hpb=1f8495d3b4e12ac774a20fde0ac23297f6e2108e diff --git a/t/01-import.t b/t/01-import.t index 939ee22..454862e 100644 --- a/t/01-import.t +++ b/t/01-import.t @@ -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 $_"; }