Skip to content

Commit 714e08a

Browse files
committed
test suite: use ulp_error_maximum instead of for loop
As suggested by devmotion on PR JuliaStats#99.
1 parent 12ed7ce commit 714e08a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/basicfuns.jl

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

111111
@testset "accuracy of `logcosh`" begin
112112
for t in (Float32, Float64)
113-
for x in range(start = t(-3), stop = t(3), length = 1000)
114-
@test ulp_error(logcosh, x) < 3
115-
end
113+
@test ulp_error_maximum(logcosh, range(start = t(-3), stop = t(3), length = 1000)) < 3
116114
end
117115
end
118116
end

0 commit comments

Comments
 (0)