Skip to content

Commit 60042a9

Browse files
committed
RT #73948: Z, flattens in list context
1 parent a6be9c5 commit 60042a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

S03-metaops/zip.t

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22

33
use Test;
4-
plan 23;
4+
plan 24;
55

66
ok eval('<a b> Z <c d>'), 'zip non-meta operator parses';
77

@@ -68,6 +68,8 @@ isa_ok (1 Z 2)[0], Parcel, 'zip returns a list of parcels';
6868
is $l.[1].lol.elems, 3, 'Z, retains list associativity';
6969
is $l.[2].lol.elems, 3, 'Z, retains list associativity';
7070
}
71-
71+
72+
# RT #73948
73+
is (1, 2 Z, 3, 4).join('|'), '1|3|2|4', 'Z, flattens in list context';
7274

7375
# vim: ft=perl6

0 commit comments

Comments
 (0)