Skip to content

Commit d78543c

Browse files
committed
tests for ().perl/().item.perl, RT #117425
1 parent b023bb0 commit d78543c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

S02-types/parcel.t

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
use v6;
22
use Test;
33

4-
plan 42;
4+
plan 44;
55

66
isa_ok (5, 7, 8), Parcel, '(5, 7, 8) is Parcel';
77
is +(5, 7, 8), 3, 'prefix:<+> on a Parcel';
88
is ~(5, 7, 8), '5 7 8', 'prefix:<~> on a Parcel';
99
is (5, 7, 8).Str, '5 7 8', '.Str on a Parcel';
1010

11+
# .perl
12+
is ().perl, '()', '.perl on empty Parcel';
13+
#?niecza todo '.item.perl on empty Parcel gives Match.ast shorthand'
14+
is ().item.perl, '$( )', '.item.perl on empty Parcel';
15+
1116
# L<S02/Quoting forms/Elsewhere it is equivalent to a parenthesized list of strings>
1217

1318
isa_ok <5 7 8>, Parcel, '<5 7 8> is Parcel';

0 commit comments

Comments
 (0)