Skip to content

Commit d604f8a

Browse files
committed
Add testcase
1 parent f471f48 commit d604f8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/other.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ end
5454
@test ψ2 isa InfiniteMPS
5555
@test norm(ψ2) 1
5656
end
57+
58+
@testset "Stackoverflow with gauging" begin
59+
ψ = FiniteMPS(10_000, ℂ^2, ℂ^1)
60+
@test ψ.AR[1] isa MPSKit.MPSTensor
61+
ψ.AC[1] = -ψ.AR[1] # force invalidation of ALs
62+
@test ψ.AL[end] isa MPSKit.MPSTensor
63+
end
5764
end
5865

5966
end

0 commit comments

Comments
 (0)