@@ -21,11 +21,13 @@ plan 29;
21
21
is ($ y , ' Just Another' , ' y is now bound to x' );
22
22
23
23
# ?rakudo todo 'binding, =:='
24
+ # ?niecza skip '=:='
24
25
ok ($ y =:= $ x , ' y is bound to x (we checked with the =:= identity op)' );
25
26
26
27
my $ z = $ x ;
27
28
is ($ z , ' Just Another' , ' z is not bound to x' );
28
29
30
+ # ?niecza skip '=:='
29
31
ok (! ($ z =:= $ x ), ' z is not bound to x (we checked with the =:= identity op)' );
30
32
31
33
$ y = ' Perl Hacker' ;
@@ -39,6 +41,7 @@ plan 29;
39
41
# Binding and $CALLER::
40
42
# ?rakudo skip 'is context, traits followed by binding'
41
43
# XXX This can pass bogusly (was doing for Rakudo for a while).
44
+ # ?niecza skip 'CALLER::'
42
45
{
43
46
sub bar {
44
47
return $ CALLER ::a eq $ CALLER ::b;
@@ -55,6 +58,7 @@ plan 29;
55
58
56
59
# Binding to swap
57
60
# ?rakudo skip 'list binding'
61
+ # ?niecza skip 'list binding'
58
62
{
59
63
my $ a = " a" ;
60
64
my $ b = " b" ;
@@ -69,6 +73,7 @@ plan 29;
69
73
70
74
# More tests for binding a list
71
75
# ?rakudo skip 'list binding'
76
+ # ?niecza skip 'list binding'
72
77
{
73
78
my $ a = " a" ;
74
79
my $ b = " b" ;
@@ -94,10 +99,12 @@ plan 29;
94
99
$ b ($ val );
95
100
is $ a , 42 , " bound readonly sub param was bound correctly (1)" ;
96
101
$ val ++ ;
102
+ # ?niecza skip "difference of interpretation on ro binding"
97
103
is $ a , 43 , " bound readonly sub param was bound correctly (2)" ;
98
104
99
105
dies_ok { $ a = 23 },
100
106
" bound readonly sub param remains readonly (1)" ;
107
+ # ?niecza skip "difference of interpretation on ro binding"
101
108
is $ a , 43 ,
102
109
" bound readonly sub param remains readonly (2)" ;
103
110
is $ val , 43 ,
@@ -121,6 +128,7 @@ plan 29;
121
128
122
129
# := actually takes subroutine parameter list
123
130
# ?rakudo todo 'List binding'
131
+ # ?niecza skip 'list binding'
124
132
{
125
133
my $ a ;
126
134
eval ' (:$a) := (:a<foo>)' ;
@@ -134,6 +142,7 @@ plan 29;
134
142
135
143
# RT #77462
136
144
# binding how has the same precedence as list assignment
145
+ # ?niecza skip 'nullary join'
137
146
{
138
147
my $ x := 1 , 2 ;
139
148
is $ x . join , ' 12' , ' binding has same precdence as list assignment'
0 commit comments