Skip to content

Commit

Permalink
Add tests for #2862
Browse files Browse the repository at this point in the history
  • Loading branch information
Altai-man committed May 16, 2019
1 parent b0ab879 commit 3b15fc1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S32-list/head.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 25;
plan 27;

=begin description
Expand Down Expand Up @@ -71,4 +71,10 @@ This test tests the C<head> builtin.
is-deeply (4,5,6).head(-999999999999999999999999999), (),
'.head works correctly with large negative Ints';

{ # https://github.com/rakudo/rakudo/commit/74c8f0442b
lives-ok {
is <a b c>.head(1/2), '', 'head with Rat index coerces it to Int and retrieves correct result';
}, 'Rat is coerced to Int when used as index';
}

# vim: ft=perl6

0 comments on commit 3b15fc1

Please sign in to comment.