Browse files

clean up temp + recursion tests

* remove redundant tests
* add test labels
* fudge only the failing test for rakudo
  • Loading branch information...
1 parent 8a9dbc0 commit 45454e3a4a82cc59e59512498952e63b31a6e89d @moritz moritz committed Jul 28, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 S04-blocks-and-statements/temp.t
View
14 S04-blocks-and-statements/temp.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 37;
+plan 36;
# L<S04/The Relationship of Blocks and Declarations/function has been renamed>
{
@@ -183,7 +183,6 @@ eval('
is $a, 1, 'multiple temps in the same scope are restored properly';
}
-#?rakudo 4 skip 'recursive temp NYI'
{
my $value = 0;
@@ -199,13 +198,16 @@ eval('
}
}
- is($value, 0);
+ is($value, 0, 'sanity');
non-recursive();
- is($value, 0);
+ is($value, 0, 'non-recursive function properly resets value');
+
+ # recover if the previous test failed
+ $value = 0;
- is($value, 0);
recursive(10);
- is($value, 0);
+ #?rakudo todo 'temp + recursion'
+ is($value, 0, 'recursive function properly resets value');
}
# vim: ft=perl6

0 comments on commit 45454e3

Please sign in to comment.