diff --git a/README.md b/README.md index b9bc5f3b6..251363565 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,6 @@ Currently, the `@compat` macro supports the following syntaxes: * `findin(a, b)` is now `findall(in(b), a)` ([#24673]). -* `realmin` and `realmax` are now `floatmin` and `floatmax` ([#28302]) - * `squeeze` is now `dropdims` ([#28303], [#26660]). ## New macros diff --git a/src/Compat.jl b/src/Compat.jl index cb88d9bc3..248151f74 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -82,13 +82,6 @@ end end end -# https://github.com/JuliaLang/julia/pull/28302 -if VERSION < v"0.7.0-beta2.169" - const floatmin = realmin - const floatmax = realmax - export floatmin, floatmax -end - # https://github.com/JuliaLang/julia/pull/28303 if VERSION < v"0.7.0-beta2.143" export dropdims diff --git a/test/old.jl b/test/old.jl index f07474bea..1bfdf9d9c 100644 --- a/test/old.jl +++ b/test/old.jl @@ -1256,3 +1256,8 @@ let a = rand(5,5) @test vec(S[i,:]) == sort(vec(a[i,:])) end end + +# 0.7.0-beta2.169 +@test floatmin(Float16) == @eval $(Core.Intrinsics.bitcast(Float16, 0x0400)) +@test floatmax(Float32) == @eval $(Core.Intrinsics.bitcast(Float32, 0x7f7fffff)) +@test floatmin(zero(Float64)) == floatmin(Float64) diff --git a/test/runtests.jl b/test/runtests.jl index 1e543c7f6..220db552b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -110,11 +110,6 @@ let @test_throws UndefKeywordError func5(x=2) end -# 0.7.0-beta2.169 -@test floatmin(Float16) == @eval $(Core.Intrinsics.bitcast(Float16, 0x0400)) -@test floatmax(Float32) == @eval $(Core.Intrinsics.bitcast(Float32, 0x7f7fffff)) -@test floatmin(zero(Float64)) == floatmin(Float64) - # 0.7.0-beta2.143 if VERSION < v"0.7.0-beta2.143" let a = reshape(Vector(1:4),(2,2,1,1)), b = reshape(Vector(1:4), (2,2,1))