Permalink
Browse files

niecza fudge

  • Loading branch information...
1 parent 03b1456 commit 004612d8f1ea00ebf285d7dad7ad90c35c2ede48 @coke coke committed Dec 24, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 S32-array/pop.t
View
@@ -38,6 +38,7 @@ plan 33;
is(+@pop, 0, 'we have no more element in the array');
ok(!defined(pop(@pop)), 'after the array is exhausted pop() returns undefined');
+ #?niecza skip 'undeclared name Failure'
ok(pop(@pop) ~~ Failure, 'after the array is exhausted pop() returns Failure');
}
}
@@ -59,21 +60,23 @@ plan 33;
is(+@pop, 0, 'we have no more element in the array');
ok(!defined(pop(@pop)), 'after the array is exhausted pop() returns undefined');
+ #?niecza skip 'undeclared name Failure'
ok(pop(@pop) ~~ Failure, 'after the array is exhausted pop() returns Failure');
}
# invocant syntax with inline arrays
{
is([1, 2, 3].pop, 3, 'this will return 3');
ok(!defined([].pop), 'this will return undefined');
+ #?niecza skip 'undeclared name Failure'
ok( [].pop ~~ Failure, '[].pop is a Failure' );
}
# some edge cases
-
{
my @pop;
ok(!defined(@pop.pop()), 'pop on an un-initialized array returns undefined');
+ #?niecza skip 'undeclared name Failure'
ok( @pop.pop() ~~ Failure, 'pop off uninitialized array is a Failure' );
}

0 comments on commit 004612d

Please sign in to comment.