]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - t/21-list.t
eval '...' should be interpreted as returning a list
[perl/modules/Sub-Nary.git] / t / 21-list.t
index e5bbc40566d25af847940f456266180c4705dc3a..c260cd3edffe652400efb0c59a68bb4476b94c7b 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 33;
+use Test::More tests => 34;
 
 use Sub::Nary;
 
@@ -56,6 +56,8 @@ my @tests = (
  [ sub { eval { }; $x, 2 },                   2 ],
  [ sub { 1, eval { $x, eval { $h{foo} } } },  3 ],
  [ sub { eval { 1, do { eval { @a }, 2 } } }, 'list' ],
+
+ [ sub { eval '1, 2' }, 'list' ],
 );
 
 my $i = 1;