X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F01-import.t;h=454862e5b957456bf7d8149bb231890b65263529;hb=163ac4d152042cfb4e085bd2333396a804871ddd;hp=375d523ef5c095da61264fb9e2219802b12a93dd;hpb=f77706f0734eb34a9623cc492b5d73061fba9b62;p=perl%2Fmodules%2FScalar-Vec-Util.git diff --git a/t/01-import.t b/t/01-import.t index 375d523..454862e 100644 --- a/t/01-import.t +++ b/t/01-import.t @@ -3,11 +3,22 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More tests => 2 * 7; require Scalar::Vec::Util; -for (qw/vfill vcopy 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 $_"; }