Skip to content

Commit

Permalink
use fatal for splice tests that might just fail, not die
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 27, 2012
1 parent d4fa5e8 commit 59ed7d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S32-array/splice.t
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ dies_ok({ 42.splice }, '.splice should not work on scalars');

@a = (1..10);
#?rakudo todo "negative args don't die"
dies_ok({splice(@a,-2)}, "negative offset dies");
dies_ok({use fatal; splice(@a,-2)}, "negative offset dies");
#?rakudo todo "negative args don't die"
dies_ok({splice(@a,2,-2)}, "negative size dies");
dies_ok({use fatal; splice(@a,2,-20)}, "negative size dies");

# vim: ft=perl6

0 comments on commit 59ed7d7

Please sign in to comment.