Permalink
Browse files

[t/spec] Unfudge various tests relating to //=, ||= and &&= for Rakudo.

git-svn-id: http://svn.pugscode.org/pugs@25876 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
jnthn
jnthn committed Mar 17, 2009
1 parent a08ed14 commit fc37ee651561b1ad9c2a133f51c947772ad0834a
Showing with 1 addition and 4 deletions.
  1. +0 −2 S03-operators/assign.t
  2. +1 −2 S04-declarations/state.t
View
@@ -213,7 +213,6 @@ plan 316;
my @p;
-#?rakudo skip "unknown reasons"
{
my $a;
@p = $a ||= 3, 4;
@@ -243,7 +242,6 @@ my @p;
is(WHAT %hash<bar>, 'Array', "Verify //= autovivifies correctly");
}
-#?rakudo skip "unknown reasons"
{
my $a = 3;
@p = $a &&= 42, 43;
View
@@ -219,15 +219,14 @@ plan 30;
}
# recursive state with list assignment initialization happens only first time
-#?rakudo skip 'recurses infinitely'
{
my $seensize;
my sub fib (Int $n) {
state @seen = 0,1,1;
$seensize = +@seen;
@seen[$n] //= fib($n-1) + fib($n-2);
}
- is fib(10), 55, "fib 1 works";
+ is fib(10), 55, "fib 10 works";
is $seensize, 11, "list assignment state in fib memoizes";
}

0 comments on commit fc37ee6

Please sign in to comment.