X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Nary.git;a=blobdiff_plain;f=t%2F25-grepmap.t;h=2a64d83fb8b4e375158bddd5ba07d6e633c80fe5;hp=06a4ddfae2a4a470378e99f51d2d6f3f4c33f81e;hb=HEAD;hpb=002535b0100121f92a04638a58e2d34add019275 diff --git a/t/25-grepmap.t b/t/25-grepmap.t index 06a4ddf..2a64d83 100644 --- a/t/25-grepmap.t +++ b/t/25-grepmap.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 31; +use Test::More tests => 32; use Sub::Nary; @@ -69,8 +69,9 @@ my @tests = ( [ sub { map { return $_ ? 2 : (3, 4) } do { return 3 .. 5 if $x; () } }, { 3 => 0.5, 0 => 0.5 } ], - [ sub { grep { 1 } 1 .. 10 }, 'list' ], - [ sub { grep { 1 } @_ }, 'list' ], + [ sub { grep { 1 } 1 .. 10 }, 'list' ], + [ sub { grep { 1 } @_ }, 'list' ], + [ sub { grep { 1 } () }, 0 ], [ sub { map { $_ } 1 .. 3 }, 3 ], [ sub { map { () } @_ }, 0 ],