Skip to content

Commit 742fce0

Browse files
committed
Fix test so that it's not trying to use is_approx on NaN values.
1 parent 4921660 commit 742fce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S32-num/real-bridge.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ is $neg-pi.exp, (-3.14).exp, "-3.14.exp is correct";
281281
is $one-and-one-hundredth.exp(10.Rat), 1.01.exp(10), "1.01.exp(10) is correct";
282282
is 2.exp($neg-pi), 2.exp(-3.14), "2.exp(-3.14) is correct";
283283
is_approx $one-and-one-hundredth.exp(10i), 1.01.exp(10i), "1.01.exp(10i) is correct";
284-
is_approx 2i.exp($neg-pi), 2i.exp(-3.14), "2i.exp(-3.14) is correct";
284+
ok 2i.exp($neg-pi) ~~ NaN, "2i.exp(-3.14) is correct";
285285

286286
{
287287
my @l = $neg-pi.roots(4);

0 commit comments

Comments
 (0)