Skip to content

Commit 973e432

Browse files
authored
Tests for flaot16 cube root (#41207)
1 parent b0f3286 commit 973e432

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/float16.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ end
9494

9595
# no domain error is thrown for negative values
9696
@test cbrt(Float16(-1.0)) == -1.0
97+
# test zero and Inf
98+
@test cbrt(Float16(0.0)) == Float16(0.0)
99+
@test cbrt(Inf16) == Inf16
97100
end
98101
@testset "binary ops" begin
99102
@test f+g === Float16(3f0)

0 commit comments

Comments
 (0)