This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
upgrade Scalar-List-Utils from 1.47 to 1.48
[perl5.git]
/
cpan
/
Scalar-List-Utils
/
t
/
sum0.t
Commit
Line
Data
b823713c
CBW
1
#!./perl
2
8b198969
CBW
3
use strict;
4
use warnings;
5
6
use Test::More tests => 3;
7
8
use List::Util qw( sum0 );
9
10
my $v = sum0;
11
is( $v, 0, 'no args' );
12
13
$v = sum0(9);
14
is( $v, 9, 'one arg' );
15
16
$v = sum0(1,2,3,4);
17
is( $v, 10, '4 args');