Skip to content

Commit 6aab59b

Browse files
committed
Update test/float16.jl
1 parent b24c5ca commit 6aab59b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/float16.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ const minsubf16_32 = Float32(minsubf16)
205205

206206
# issue #52394
207207
@test Float16(10^8 // (10^9 + 1)) == convert(Float16, 10^8 // (10^9 + 1)) == Float16(0.1)
208+
@test Float16((typemax(UInt128)-0x01) // typemax(UInt128)) == Float16(1.0)
208209

209210
@testset "conversion to Float16 from" begin
210211
for T in (Float32, Float64, BigFloat)

0 commit comments

Comments
 (0)