Skip to content

Commit e791ac5

Browse files
committed
use ulp_error_maximum instead of a loop
As suggested by devmotion on a PR to LogExpFunctions.jl: * JuliaStats/LogExpFunctions.jl#99
1 parent 542b594 commit e791ac5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/math.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,7 @@ end
707707

708708
@testset "accuracy of `cosc` around the origin" begin
709709
for t in (Float32, Float64)
710-
for x in range(start = t(-1), stop = t(1), length = 5000)
711-
@test ulp_error(cosc, x) < 4
712-
end
710+
@test ulp_error_maximum(cosc, range(start = t(-1), stop = t(1), length = 5000)) < 4
713711
end
714712
end
715713
end

0 commit comments

Comments
 (0)