Skip to content

Commit b51d3a6

Browse files
committed
Test infix:<~>(Blob:D)
Added in commit rakudo/rakudo@77e9d4b545
1 parent 0300663 commit b51d3a6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

S32-container/buf.t

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

33
use Test;
44

5-
plan 18;
5+
plan 19;
66

77
# L<S32::Containers/Classes and Roles/"=item Buf">
88

@@ -166,4 +166,11 @@ subtest 'Buf.prepend' => {
166166

167167
} # </coverage; 2016-09-26>
168168

169+
subtest 'arity-1 infix:<~> works on Blobs' => {
170+
plan 2;
171+
constant $b = Buf.new: <42 72 13>;
172+
is-deeply infix:<~>($b), $b, 'arity-1 infix:<~> is unity';
173+
is-deeply ([~] [$b]), $b, '[~] works with array with 1 blob';
174+
}
175+
169176
# vim: ft=perl6

0 commit comments

Comments
 (0)