Skip to content

Commit f9cede3

Browse files
committed
More test fixes
1 parent 301780a commit f9cede3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/tensors.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ for V in spacelist
4949
@test b1 == b2
5050
@test eltype(bs) === Pair{typeof(c),typeof(b1)}
5151
@test typeof(b1) === TensorKit.blocktype(t)
52+
@test typeof(c) === sectortype(t)
5253
end
5354
end
5455
@timedtestset "Tensor Dict conversion" begin
@@ -108,7 +109,9 @@ for V in spacelist
108109
next = @constinferred Nothing iterate(bs, state)
109110
b2 = @constinferred block(t', first(blocksectors(t')))
110111
@test b1 == b2
111-
@test eltype(bs) === typeof(b1) === TensorKit.blocktype(t')
112+
@test eltype(bs) === Pair{typeof(c), typeof(b1)}
113+
@test typeof(b1) === TensorKit.blocktype(t')
114+
@test typeof(c) === sectortype(t)
112115
# linear algebra
113116
@test isa(@constinferred(norm(t)), real(T))
114117
@test norm(t)^2 dot(t, t)

0 commit comments

Comments
 (0)