Skip to content

Commit

Permalink
Add test for RT #123077
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Jun 20, 2015
1 parent fa9de57 commit 6ea448b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S03-operators/arith.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 156;
plan 157;

my $five = abs(-5);

Expand Down Expand Up @@ -346,6 +346,13 @@ All uses of a zero modulus or divisor should 'die', and the
'Division by zero with infix:</> dies and is catchable with VRef variables';
}

# RT #123077
{
my $rt123077 = 1 / 0;
throws-like '$rt123077.gist', X::Numeric::DivideByZero,
".gist on '1/0' blows up with X::Numeric::DivideByZero";
}

# This is a rakudo regression wrt bignum:
{
my $f = 1; $f *= $_ for 2..25;
Expand Down

0 comments on commit 6ea448b

Please sign in to comment.