Skip to content

Commit 0465872

Browse files
committed
Fix incorrect test
The test was added 11 days ago[^1] and is not part of 6.c-errata. Negative exponents underflow, not overflow. [1] 714abc9
1 parent 72fe409 commit 0465872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S03-operators/overflow.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ sub tryeq_sloppy ($lhs, $rhs, $todo1 = '') {
266266
throws-like '2**10000000000', X::Numeric::Overflow,
267267
'attempting to raise to a huge power throws';
268268

269-
throws-like '2**-10000000000', X::Numeric::Overflow,
269+
throws-like '2**-10000000000', X::Numeric::Underflow,
270270
'attempting to raise to a huge negative power throws';
271271

272272
# vim: ft=perl6

0 commit comments

Comments
 (0)