Skip to content

Commit

Permalink
delete flaky ranges/TwicePrecision test (#55712)
Browse files Browse the repository at this point in the history
Fixes #55710
  • Loading branch information
nsajko authored Sep 8, 2024
1 parent 4f0a333 commit 8173750
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/ranges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,10 @@ end

rand_twiceprecision(::Type{T}) where {T<:Number} = Base.TwicePrecision{T}(rand(widen(T)))

rand_twiceprecision_is_ok(::Type{T}) where {T<:Number} = @test !iszero(rand_twiceprecision(T).lo)

# For this test the `BigFloat` mantissa needs to be just a bit
# larger than the `Float64` mantissa
setprecision(BigFloat, 70) do
n = 10
@testset "rand twiceprecision is ok" for T (Float32, Float64), i 1:n
rand_twiceprecision_is_ok(T)
end
@testset "twiceprecision roundtrip is not lossy 1" for i 1:n
twiceprecision_roundtrip_is_not_lossy(Float64, rand(BigFloat))
end
Expand Down

0 comments on commit 8173750

Please sign in to comment.