Skip to content

Commit dc74476

Browse files
committed
Test .head works correctly with large negative Ints
RT#130285: https://rt.perl.org/Ticket/Display.html?id=130285
1 parent 76ed460 commit dc74476

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S32-list/head.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 24;
5+
plan 25;
66

77
=begin description
88
@@ -67,4 +67,8 @@ This test tests the C<head> builtin.
6767
is $range.head(5).List, (), "Range.head works if empty";
6868
} #3
6969

70+
# RT #130285
71+
is-deeply (4,5,6).head(-999999999999999999999999999), (),
72+
'.head works correctly with large negative Ints';
73+
7074
# vim: ft=perl6

0 commit comments

Comments
 (0)