Skip to content

Commit d9bfb2e

Browse files
authored
Add test case for new floatmin2
1 parent 10cf7f7 commit d9bfb2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/specialvalues.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@ end
6161
@test isnan(asech(T(NaN)))
6262
@test isnan(acoth(T(NaN)))
6363
end
64+
65+
@testset "floatmin2" for T in (Double16, Double32, Double64)
66+
trueval = (twopar = 2one(T); twopar^trunc(Integer,log(floatmin(T)/eps(T))/log(twopar)/twopar))
67+
@test LinearAlgebra.floatmin2(T) == trueval
68+
end

0 commit comments

Comments
 (0)