Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a563544
commit 1b0be0f
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use lib <t/packages/>; | ||
use Test; | ||
use Test::Helpers; | ||
|
||
# This file contains tests for behaviour on overflow in various routines | ||
|
||
plan 1; | ||
|
||
# RT #125820 | ||
subtest '.roll' => { | ||
plan 3; | ||
|
||
throws-like { <a b c d e>.roll(-9999999999999999999999999999999999999999999999999).perl }, | ||
Exception, :message{ .contains: <unbox native>.all }, '(1)'; | ||
|
||
throws-like { <a b c d e>.roll(-99999999999999999999999999999999999999999999999999999999999999999).perl }, | ||
Exception, :message{ .contains: <unbox native>.all }, '(2)'; | ||
|
||
throws-like { <a b c d e>.roll(99999999999999999999999999999999999999999999999999999999999999999).perl }, | ||
Exception, :message{ .contains: <unbox native>.all }, '(3)'; | ||
} | ||
|
||
# vim: ft=perl6 expandtab sw=4 |