Skip to content

Commit 15647bc

Browse files
committed
Add test
1 parent bfc9ae7 commit 15647bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/tensors.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ for V in spacelist
9191
@test space(t) == (W one(W))
9292
@test domain(t) == one(W)
9393
@test typeof(t) == TensorMap{T,spacetype(t),5,0,Vector{T}}
94+
bs = @inferred blocks(t)
95+
b = @inferred block(t, first(blocksectors(t)))
96+
@test eltype(bs) === typeof(b) === TensorKit.blocktype(t)
9497
end
9598
end
9699
@timedtestset "Tensor Dict conversion" begin

0 commit comments

Comments
 (0)