X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Nary.git;a=blobdiff_plain;f=t%2F21-list.t;h=3acf6593eeb4a83aca744724fdbf8963d65bb5a3;hp=6de15c23d91bab35ceca6fd55a78f0e44fee5c1c;hb=cab48037c2f684dd60d1860bdc2efa3d10d3e7a3;hpb=ed86f98b23ca99add0f670107a3bea7c62819803 diff --git a/t/21-list.t b/t/21-list.t index 6de15c2..3acf659 100644 --- a/t/21-list.t +++ b/t/21-list.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 36; +use Test::More tests => 40; use Sub::Nary; @@ -40,8 +40,12 @@ my @tests = ( [ sub { $x, @a }, 'list' ], [ sub { %h, $y }, 'list' ], - [ sub { 1 .. 3 }, 'list' ], - [ sub { my @a = (1 .. 4) }, 4 ], + [ sub { 1 .. 3 }, 3 ], + [ sub { $x .. 3 }, 'list' ], + [ sub { 1 .. $x }, 'list' ], + [ sub { '2foo' .. 4 }, 3 ], + [ sub { my @a = (7, 8); @a .. 4 }, 'list' ], + [ sub { my @a = (1 .. 4) }, 4 ], [ sub { "banana" =~ /(a)/g }, 'list' ],