Skip to content

Commit

Permalink
Add test for #3419
Browse files Browse the repository at this point in the history
Making sure we have a type object candidate for Int.new(value), so
that we don't infiloop.
  • Loading branch information
lizmat committed Jan 12, 2020
1 parent 2552970 commit e835c82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S32-num/int.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 164;
plan 165;

# L<S32::Numeric/Real/=item truncate>
# truncate and .Int are synonynms.
Expand Down Expand Up @@ -609,4 +609,9 @@ subtest 'no funny business with Ints that are not representable in double' => {
~ '7777506072339445587895905719156736', 'huge Ints stringify correctly';
}

# https://github.com/rakudo/rakudo/issues/3419
{
dies-ok { Int.new(Int) }, 'does Int.new(Int) die?';
}

# vim: ft=perl6

0 comments on commit e835c82

Please sign in to comment.