X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Flist.t;h=184724a3cfc56bd2e9367720689f7f6e56ed4e5f;hb=2b6765935f5ee68d8093e686b8e292ad5de5a898;hp=a8fdc180b539bf757c2ce5890dbb953954de3586;hpb=2f7a9718549bed20690a376daf82104fa475c252;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/list.t b/t/op/list.t index a8fdc18..184724a 100644 --- a/t/op/list.t +++ b/t/op/list.t @@ -6,7 +6,7 @@ BEGIN { } require "test.pl"; -plan( tests => 57 ); +plan( tests => 58 ); @foo = (1, 2, 3, 4); cmp_ok($foo[0], '==', 1, 'first elem'); @@ -161,3 +161,7 @@ cmp_ok(join('',(1,2),3,(4,5)),'eq','12345','list (..).(..)'); test_zero_args("do-returned list slice", do { (10,11)[2,3]; }); } +{ + # perl #20321 + is (join('', @{[('abc'=~/./g)[0,1,2,1,0]]}), "abcba"); +}