diff --git a/S32-list/head.t b/S32-list/head.t index 0cb8b83f2e..8052bd474e 100644 --- a/S32-list/head.t +++ b/S32-list/head.t @@ -2,7 +2,7 @@ use v6; use Test; -plan 25; +plan 27; =begin description @@ -71,4 +71,10 @@ This test tests the C 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 .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