Skip to content

Commit b393623

Browse files
committed
[v6.d REVIEW] Respec fudged Inf.Int/1 test
Closes RT#74648: https://rt.perl.org/Ticket/Display.html?id=74648 Inf.Int Fails, because Inf is not representable in Int. This makes the test `Failure/1`, which rightfully explodes and shouldn't be making any Rats. Unfudge and change test to `throws-like`
1 parent aca8689 commit b393623

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S32-num/rat.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ is NaN.Rat, NaN, "NaN.Rat == NaN";
151151
is (-Inf).Rat, -Inf, "(-Inf).Rat == -Inf";
152152

153153
# RT #74648
154-
#?rakudo skip 'RT #74648'
155-
isa-ok Inf.Int / 1, Rat, "Inf.Int / 1 is a Rat";
154+
throws-like { Inf.Int / 1 }, X::Numeric::CannotConvert,
155+
'Inf.Int / 1 throws';
156156
}
157157

158158
# Quick test of some basic mixed type math

0 commit comments

Comments
 (0)