From 1a72d75da54d19a56a612ba68fd27562771fe37b Mon Sep 17 00:00:00 2001 From: usev6 Date: Thu, 12 Mar 2015 10:50:02 +0100 Subject: [PATCH] Add test for RT #121071 --- S02-types/native.t | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/S02-types/native.t b/S02-types/native.t index 2e5fda7566..b7148c833e 100644 --- a/S02-types/native.t +++ b/S02-types/native.t @@ -1,7 +1,7 @@ use v6; use Test; -plan 37; +plan 39; { my int $x; @@ -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