Skip to content

Commit 987c253

Browse files
committed
Add some tests
1 parent c94ec36 commit 987c253

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/abstracttensor/blocktensor.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,16 @@ end
207207
@test ta tb
208208
end
209209

210+
@testset "Adjoint via conversion" begin
211+
t1 = rand(ComplexF64, V1 V2 V4')
212+
a = convert(TensorMap, t1)
213+
t1adj = @constinferred adjoint(t1)
214+
t1adj′ = @constinferred copy(t1adj)
215+
@test !(eltype(t1adj′) <: AdjointTensorMap)
216+
@test t1adj t1adj′
217+
@test a' convert(TensorMap, t1adj)
218+
end
219+
210220
# if hasfusiontensor(I)
211221
# @timedtestset "Tensor functions" begin
212222
# W = V1 ⊗ V2

0 commit comments

Comments
 (0)