From f886239dfb7f3fa6d0aa17ae8e7fd6d525b27528 Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Tue, 8 Oct 2019 19:27:01 +0200 Subject: [PATCH] Drop compat code for `floatmin` and `floatmax` from #607 --- README.md | 2 -- src/Compat.jl | 7 ------- test/old.jl | 5 +++++ test/runtests.jl | 5 ----- 4 files changed, 5 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 78d3ded4f..c8ace34ca 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,6 @@ Currently, the `@compat` macro supports the following syntaxes: ## Renaming -* `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 3d27c829c..ec6bf1596 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 af3edd6fd..80ee36f1b 100644 --- a/test/old.jl +++ b/test/old.jl @@ -1264,3 +1264,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 cf416b7c1..3b55ed3fc 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -98,11 +98,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))