Skip to content

Commit 6897e81

Browse files
committed
swtich to True/False
1 parent 8786c2e commit 6897e81

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/ArrayInterface.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,17 +856,17 @@ Examples
856856
1 + 1im
857857
858858
julia> ArrayInterface.is_lazy_conjugate(a)
859-
true
859+
True()
860860
861861
julia> b = a'
862862
1×2 adjoint(transpose(adjoint(::Vector{Complex{Int64}}))) with eltype Complex{Int64}:
863863
1+1im 1-1im
864864
865865
julia> ArrayInterface.is_lazy_conjugate(b)
866-
false
866+
False()
867867
868868
"""
869-
is_lazy_conjugate(::T) where {T <: AbstractArray} = _is_lazy_conjugate(T, false)
869+
is_lazy_conjugate(::T) where {T <: AbstractArray} = _is_lazy_conjugate(T, False())
870870

871871
function _is_lazy_conjugate(::Type{T}, isconj) where {T <: AbstractArray}
872872
Tp = parent_type(T)

test/runtests.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -827,14 +827,13 @@ end
827827

828828
@testset "lazy conj" begin
829829
a = rand(ComplexF64, 2)
830-
@test is_lazy_conjugate(a) == false
830+
@test @inferred(is_lazy_conjugate(a)) == false
831831
b = a'
832-
@test is_lazy_conjugate(b) == true
832+
@test @inferred(is_lazy_conjugate(b)) == true
833833
c = transpose(b)
834-
@test is_lazy_conjugate(c) == true
834+
@test @inferred(is_lazy_conjugate(c)) == true
835835
d = c'
836-
@test is_lazy_conjugate(d) == false
836+
@test @inferred(is_lazy_conjugate(d)) == false
837837
e = permutedims(d)
838-
@test is_lazy_conjugate(e) == false
839-
end
840-
838+
@test @inferred(is_lazy_conjugate(e)) == false
839+
end

0 commit comments

Comments
 (0)