Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashk committed Apr 24, 2013
1 parent 3cbf078 commit 6f6abf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/099-problems/03.t
Expand Up @@ -10,6 +10,6 @@ use Test::More;

sub nth($n, @list) { @list[$n] }

is (nth(2, [1, 1, 2, 3, 5, 8]), 2, "... P03";
is (nth(2, [1, 1, 2, 3, 5, 8], 2, "... P03");

done_testing(1);
2 changes: 1 addition & 1 deletion t/099-problems/19.t
Expand Up @@ -12,7 +12,7 @@ use Test::More;
sub rotate($n, @list) {
my $len = @list.length;
my @r = @list[($n < 0 ? $len + $n : $n) .. ($len - 1)];
@r.push(@list[0 .. ($n < 0 ? $len + $n : $n-1)]);
@r.push(@list[0 .. ($n < 0 ? $len + $n-1 : $n-1)]);
@r.flatten
}

Expand Down

0 comments on commit 6f6abf3

Please sign in to comment.