]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - t/21-list.t
We can't guess how many elements a match will return
[perl/modules/Sub-Nary.git] / t / 21-list.t
index cb1dd1a8aca7a9dd8ef433ffa31f31676dd87ee9..71edefbdefb21cdf8c74049df2632aefda69e75f 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 27;
+use Test::More tests => 28;
 
 use Sub::Nary;
 
@@ -41,6 +41,8 @@ my @tests = (
  [ sub { 1 .. 3 },           'list' ],
  [ sub { my @a = (1 .. 4) }, 4 ],
 
+ [ sub { "banana" =~ /(a)/g }, 'list' ],
+
  [ sub { (localtime)[0, 1, 2] }, 3 ],
 
  [ sub { for (1, 2, 3) { } },         0 ],