]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - t/24-ops.t
Fix map/grep handling of returns in block with a new cumulate function
[perl/modules/Sub-Nary.git] / t / 24-ops.t
index 9b7f97021740213766b1828f7a92b5d9aecde2ed..b636cf847f3c297999e49a617498d89bf0cbe1e8 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 48;
+use Test::More tests => 49;
 
 use Sub::Nary;
 
@@ -47,6 +47,7 @@ my @tests = (
  [ sub { delete @h{qw/foo bar baz/} }, 3 ],
 
  [ sub { grep { 1 } 1 .. 10 }, 'list' ],
+ [ sub { grep { 1 } @_ },      'list' ],
 
  [ sub { map { $_ } 1 .. 3 },                       3 ],
  [ sub { map { () } @_ },                           0 ],