Skip to content

Commit

Permalink
[t/spec] Fudged two tests in S06-traits/is-rw.t
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@29958 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
arnsholt committed Mar 6, 2010
1 parent b6c11b2 commit ac6b6ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S06-traits/is-rw.t
Expand Up @@ -31,11 +31,13 @@ plan 6;
my %hash = (a => 23);
# First check .value = ... works (as this is a dependency for the next test)
try { %hash.pairs[0].value = 42 };
#?rakudo todo ''
is %hash<a>, 42, "pairs are mutable";

for %hash.pairs -> $pair { # Note: No "is rw"!
try { $pair.value += 100 }; # Modifies %hash
}
#?rakudo todo 'Depends on preceding test working'
is %hash<a>, 142, "'is rw' not necessary on objects/references";
}

Expand Down

0 comments on commit ac6b6ed

Please sign in to comment.