]> git.vpit.fr Git - perl/modules/Scalar-Vec-Util.git/blob - t/02-pp.t
c4df852a313e560d01f021fe70bd7c8d68704c69
[perl/modules/Scalar-Vec-Util.git] / t / 02-pp.t
1 #!perl -T
2
3 use strict;
4 use warnings;
5
6 use Config qw/%Config/;
7
8 use Test::More tests => 4;
9
10 BEGIN {
11  my $re = join '|',
12            grep defined && length,
13             @Config{qw/myarchname archname/}, 'arch';
14  @INC = grep !/(?:$re)$/, @INC
15 }
16 use Scalar::Vec::Util qw/vfill vcopy veq SVU_PP/;
17
18 is(SVU_PP, 1, 'using pure perl subroutines');
19 for (qw/vfill vcopy veq/) {
20  no strict 'refs';
21  is(*{$_}{CODE}, *{'Scalar::Vec::Util::'.$_}{CODE}, $_ .' is ' . $_ . '_pp');
22 }