Skip to content

Commit 0e33deb

Browse files
committed
test suite: use ulp_error_maximum instead of for loop
1 parent c896b88 commit 0e33deb

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
@@ -88,9 +88,7 @@ end
8888
@test logit(logistic(2)) 2.0
8989
@testset "accuracy of `logit`" begin
9090
for t in (Float16, Float32, Float64)
91-
for x in range(start = t(0), stop = t(1), length = 500)
92-
@test 2 * ulp_error(logit, x) < 3
93-
end
91+
@test 2 * ulp_error_maximum(logit, range(start = t(0), stop = t(1), length = 500)) < 3
9492
end
9593
end
9694
end

0 commit comments

Comments
 (0)