]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - t/25-grepmap.t
Update VPIT::TestHelpers to 15e8aee3
[perl/modules/Sub-Nary.git] / t / 25-grepmap.t
index 06a4ddfae2a4a470378e99f51d2d6f3f4c33f81e..2a64d83fb8b4e375158bddd5ba07d6e633c80fe5 100644 (file)
@@ -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 ],