diff --git a/README.md b/README.md index d301c024c..2d6bc95ac 100644 --- a/README.md +++ b/README.md @@ -225,8 +225,6 @@ Currently, the `@compat` macro supports the following syntaxes: * `select`* functions (`select`, `select!`, `selectperm`, `selectperm!`) are renamed to `partialsort`* (`partialsort`, `partialsort!`, `partialsortperm`, `partialsortperm!`) ([#23051]) -* `ctranspose` and `ctranspose!` are now `adjoint` and `adjoint!` ([#23235]) - * Math constants (`π`, `pi`, `e`, `γ`, `eulergamma`, `catalan`, `φ`, `golden`) are moved to the `MathConstants` module (available as `Compat.MathConstants`). The name exported from `Base` for `e` is changed to `ℯ`. ([#23427]) diff --git a/src/Compat.jl b/src/Compat.jl index 908509736..eeed85436 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -22,13 +22,6 @@ end include("compatmacro.jl") -# 0.7.0-DEV.1415 -@static if !isdefined(Base, :adjoint) - const adjoint = ctranspose - const adjoint! = ctranspose! - export adjoint, adjoint! -end - # 0.7.0-DEV.1592 @static if !isdefined(Base, :MathConstants) @eval module MathConstants diff --git a/test/old.jl b/test/old.jl index beb504fe8..365abfd67 100644 --- a/test/old.jl +++ b/test/old.jl @@ -222,3 +222,14 @@ end # PR 22761 @test_throws OverflowError throw(OverflowError("overflow")) + +# 0.7 +let M = [1 + 2im 3 + 4im; 5 + 6im 7 + 8im], + M2 = adjoint(copy(M)), + Mc = [1 - 2im 5 - 6im; 3 - 4im 7 - 8im] + + @test adjoint(M) == Mc + M2 .= 0 + adjoint!(M2, M) + @test M2 == Mc +end diff --git a/test/runtests.jl b/test/runtests.jl index d981c2226..38bcce16b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -103,17 +103,6 @@ end # 0.7 @test isa(1:2, AbstractRange) -# 0.7 -let M = [1 + 2im 3 + 4im; 5 + 6im 7 + 8im], - M2 = adjoint(copy(M)), - Mc = [1 - 2im 5 - 6im; 3 - 4im 7 - 8im] - - @test adjoint(M) == Mc - M2 .= 0 - adjoint!(M2, M) - @test M2 == Mc -end - # 0.7 module TestMathConstants using Compat.MathConstants