Skip to content

Commit 1ca04f3

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 e8319ac commit 1ca04f3

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
@@ -740,9 +740,7 @@ end
740740

741741
@testset "accuracy of `cosc` around the origin" begin
742742
for t in (Float32, Float64)
743-
for x in range(start = t(-1), stop = t(1), length = 5000)
744-
@test ulp_error(cosc, x) < 4
745-
end
743+
@test ulp_error_maximum(cosc, range(start = t(-1), stop = t(1), length = 5000)) < 4
746744
end
747745
end
748746
end

0 commit comments

Comments
 (0)