Skip to content

Commit d88e9eb

Browse files
committed
Fudge S03/binding-scalars for niecza
1 parent 450bf58 commit d88e9eb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

S03-operators/binding-scalars.t

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ plan 29;
2121
is($y, 'Just Another', 'y is now bound to x');
2222

2323
#?rakudo todo 'binding, =:='
24+
#?niecza skip '=:='
2425
ok($y =:= $x, 'y is bound to x (we checked with the =:= identity op)');
2526

2627
my $z = $x;
2728
is($z, 'Just Another', 'z is not bound to x');
2829

30+
#?niecza skip '=:='
2931
ok(!($z =:= $x), 'z is not bound to x (we checked with the =:= identity op)');
3032

3133
$y = 'Perl Hacker';
@@ -39,6 +41,7 @@ plan 29;
3941
# Binding and $CALLER::
4042
#?rakudo skip 'is context, traits followed by binding'
4143
#XXX This can pass bogusly (was doing for Rakudo for a while).
44+
#?niecza skip 'CALLER::'
4245
{
4346
sub bar {
4447
return $CALLER::a eq $CALLER::b;
@@ -55,6 +58,7 @@ plan 29;
5558

5659
# Binding to swap
5760
#?rakudo skip 'list binding'
61+
#?niecza skip 'list binding'
5862
{
5963
my $a = "a";
6064
my $b = "b";
@@ -69,6 +73,7 @@ plan 29;
6973

7074
# More tests for binding a list
7175
#?rakudo skip 'list binding'
76+
#?niecza skip 'list binding'
7277
{
7378
my $a = "a";
7479
my $b = "b";
@@ -94,10 +99,12 @@ plan 29;
9499
$b($val);
95100
is $a, 42, "bound readonly sub param was bound correctly (1)";
96101
$val++;
102+
#?niecza skip "difference of interpretation on ro binding"
97103
is $a, 43, "bound readonly sub param was bound correctly (2)";
98104

99105
dies_ok { $a = 23 },
100106
"bound readonly sub param remains readonly (1)";
107+
#?niecza skip "difference of interpretation on ro binding"
101108
is $a, 43,
102109
"bound readonly sub param remains readonly (2)";
103110
is $val, 43,
@@ -121,6 +128,7 @@ plan 29;
121128

122129
# := actually takes subroutine parameter list
123130
#?rakudo todo 'List binding'
131+
#?niecza skip 'list binding'
124132
{
125133
my $a;
126134
eval '(:$a) := (:a<foo>)';
@@ -134,6 +142,7 @@ plan 29;
134142

135143
# RT #77462
136144
# binding how has the same precedence as list assignment
145+
#?niecza skip 'nullary join'
137146
{
138147
my $x := 1, 2;
139148
is $x.join, '12', 'binding has same precdence as list assignment'

0 commit comments

Comments
 (0)