From 1a175b1507e2866986c8dc693279d079fbe5fc06 Mon Sep 17 00:00:00 2001 From: Katharine Hyatt Date: Fri, 11 Jun 2021 21:01:07 -0400 Subject: [PATCH] Tests for flaot16 cube root --- test/float16.jl | 3 +++ 1 file changed, 3 insertions(+) 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)