This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
upgrade Scalar-List-Utils from 1.47 to 1.48
[perl5.git] / cpan / Scalar-List-Utils / t / sum0.t
CommitLineData
b823713c
CBW
1#!./perl
2
8b198969
CBW
3use strict;
4use warnings;
5
6use Test::More tests => 3;
7
8use List::Util qw( sum0 );
9
10my $v = sum0;
11is( $v, 0, 'no args' );
12
13$v = sum0(9);
14is( $v, 9, 'one arg' );
15
16$v = sum0(1,2,3,4);
17is( $v, 10, '4 args');