Debian Codegraph @

cpan/Scalar-List-Utils/t/00version.t

raw
1 #!./perl
2
3 use strict;
4 use warnings;
5
6 use Scalar::Util ();
7 use List::Util ();
8 use List::Util::XS ();
9 use Sub::Util ();
10 use Test::More tests => 4;
11
12 is( $Scalar::Util::VERSION, $List::Util::VERSION, "VERSION mismatch between Scalar/List");
13 my $has_xs = eval { Scalar::Util->import('dualvar'); 1 };
14 my $xs_version = $has_xs ? $List::Util::VERSION : undef;
15 is( $List::Util::XS::VERSION, $xs_version, "VERSION mismatch between LU::XS and LU");
16 is( $Sub::Util::VERSION, $Scalar::Util::VERSION, "VERSION mistmatch between Sub/Scalar");
17 is( $Sub::Util::VERSION, $List::Util::VERSION, "VERSION mistmatch between Sub/List");
18