Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jan 17, 2025
1 parent bfc9ae7 commit 15647bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/tensors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ for V in spacelist
@test space(t) == (W one(W))
@test domain(t) == one(W)
@test typeof(t) == TensorMap{T,spacetype(t),5,0,Vector{T}}
bs = @inferred blocks(t)
b = @inferred block(t, first(blocksectors(t)))
@test eltype(bs) === typeof(b) === TensorKit.blocktype(t)
end
end
@timedtestset "Tensor Dict conversion" begin
Expand Down

0 comments on commit 15647bc

Please sign in to comment.