We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73fa45b commit ac98befCopy full SHA for ac98bef
S32-hash/pairs.t
@@ -59,18 +59,19 @@ Basic C<pairs> tests, see S32::Containers.
59
"pairs() on 1-elem hash, 2-depth joined" );
60
}
61
62
+#?rakudo todo "Rakudo seems to make a copy rather than a reference"
63
{
64
my %hash = (:a(1), :b(2), :c(3));
65
66
lives_ok { for %hash.pairs -> $pair {
67
$pair.value += 100;
68
} }, 'aliases returned by %hash.pairs should be rw (1)';
69
- #?rakudo todo "Rakudo seems to make a copy rather than a reference"
70
is %hash<b>, 102, 'aliases returned by %hash.pairs should be rw (2)';
71
72
73
#?pugs todo 'bug'
74
75
76
my $var = 42;
77
my $pair = (a => $var);
0 commit comments