Skip to content

Commit 4b41e67

Browse files
committed
Avoid failure when not finite in misc tests.
1 parent 6409bf4 commit 4b41e67

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/miscellaneous.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -975,12 +975,10 @@ end
975975
s = sum(x); p = prod(x)
976976
s1, p1 = sumprodavx(x)
977977
@test s s1
978-
@test p p1
978+
isfinite(p) && @test p p1
979979
s1, p1 = sumprod_avx(vec(x)) # FIXME: should use `gespf` so that `vec` is no longer necessary
980980
@test s s1
981-
if isfinite(p)
982-
@test p p1
983-
end
981+
isfinite(p) && @test p p1
984982
r = T == Float32 ? (Int32(-10):Int32(107)) : (Int64(-10):Int64(107))
985983
s = sum(r); p = prod(r)
986984
s1, p1 = sumprodavx(r)

0 commit comments

Comments
 (0)