diff --git a/S03-metaops/cross.t b/S03-metaops/cross.t index f5c8ee50fe..16918b1e98 100644 --- a/S03-metaops/cross.t +++ b/S03-metaops/cross.t @@ -1,7 +1,7 @@ use v6; use Test; -plan 28; +plan 29; # L ok EVAL(' X '), 'cross non-meta operator parses'; @@ -111,4 +111,10 @@ is ([1,2] X~ ), '1 2a 1 2b', '[] does not flatten'; is (1,2 X ( X "x")).join, '1a1x1b1x2a2x2b2x', 'Nested X works'; +{ + my @a = 1,2,3; + @a X*= 10; + is ~@a, '10 20 30', 'cross can modify containers on the left'; +} + # vim: ft=perl6 diff --git a/S03-metaops/zip.t b/S03-metaops/zip.t index e35e1d91f6..e492a7bfb6 100644 --- a/S03-metaops/zip.t +++ b/S03-metaops/zip.t @@ -1,7 +1,7 @@ use v6; use Test; -plan 24; +plan 25; ok EVAL(' Z '), 'zip non-meta operator parses'; @@ -72,4 +72,10 @@ isa_ok (1 Z 2)[0], Parcel, 'zip returns a list of parcels'; # RT #73948 is (1, 2 Z, 3, 4).join('|'), '1|3|2|4', 'Z, flattens in list context'; +{ + my @a = 1,2,3; + @a Z+= 3,2,1; + is ~@a, '4 4 4', 'zip can modify containers on the left' +} + # vim: ft=perl6