Skip to content

Commit

Permalink
Add test for RT #121071
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Mar 12, 2015
1 parent 9a695d3 commit 1a72d75
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S02-types/native.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 37;
plan 39;

{
my int $x;
Expand Down Expand Up @@ -158,4 +158,14 @@ plan 37;
is $n32, 4e0, 'Bound alias to num32 native works';
}

# RT #121071
{
my int $low = 10**15;
my int $high = 2**60 - 1;
is $low, 1_000_000_000_000_000,
'int does not get confused with goldilocks number (low)';
is $high, 1_152_921_504_606_846_975,
'int does not get confused with goldilocks number (high)';
}

# vim: ft=perl6

0 comments on commit 1a72d75

Please sign in to comment.