diff --git a/test/float16.jl b/test/float16.jl index 916032131bf5d..804aba9ef741b 100644 --- a/test/float16.jl +++ b/test/float16.jl @@ -94,6 +94,9 @@ end # no domain error is thrown for negative values @test cbrt(Float16(-1.0)) == -1.0 + # test zero and Inf + @test cbrt(Float16(0.0)) == Float16(0.0) + @test cbrt(Inf16) == Inf16 end @testset "binary ops" begin @test f+g === Float16(3f0)