@@ -9,6 +9,7 @@ module TestStates
99 using Test, TestExtras
1010 using MPSKit
1111 using MPSKit: _transpose_front, _transpose_tail
12+ using MPSKit: IsfiniteStyle, FiniteStyle, InfiniteStyle
1213 using MPSKit: TransferMatrix
1314 using TensorKit
1415 using TensorKit: ℙ
@@ -25,6 +26,7 @@ module TestStates
2526 ψ = FiniteMPS (rand, elt, L, d, D)
2627
2728 @test isfinite (ψ)
29+ @test IsfiniteStyle (ψ) == FiniteStyle ()
2830 @test @constinferred physicalspace (ψ) == fill (d, L)
2931 @test all (x -> x ≾ D, @constinferred left_virtualspace (ψ))
3032 @test all (x -> x ≾ D, @constinferred right_virtualspace (ψ))
@@ -101,6 +103,8 @@ module TestStates
101103 ψ = InfiniteMPS ([rand (elt, D * d, D), rand (elt, D * d, D)]; tol)
102104
103105 @test ! isfinite (ψ)
106+ @test IsfiniteStyle (ψ) == InfiniteStyle ()
107+
104108 @test physicalspace (ψ) == fill (d, 2 )
105109 @test all (x -> x ≾ D, left_virtualspace (ψ))
106110 @test all (x -> x ≾ D, right_virtualspace (ψ))
@@ -231,6 +235,8 @@ module TestStates
231235 ϕ₁ = LeftGaugedQP (rand, ψ)
232236 ϕ₂ = LeftGaugedQP (rand, ψ)
233237
238+ @test IsfiniteStyle (ϕ₁) == FiniteStyle ()
239+
234240 @test @constinferred physicalspace (ϕ₁) == physicalspace (ψ)
235241 @test @constinferred left_virtualspace (ϕ₁) == left_virtualspace (ψ)
236242 @test @constinferred right_virtualspace (ϕ₁) == right_virtualspace (ψ)
@@ -266,6 +272,8 @@ module TestStates
266272 ϕ₁ = LeftGaugedQP (rand, ψ)
267273 ϕ₂ = LeftGaugedQP (rand, ψ)
268274
275+ @test IsfiniteStyle (ϕ₁) == InfiniteStyle ()
276+
269277 @test @constinferred physicalspace (ϕ₁) == physicalspace (ψ)
270278 @test @constinferred left_virtualspace (ϕ₁) == left_virtualspace (ψ)
271279 @test @constinferred right_virtualspace (ϕ₁) == right_virtualspace (ψ)
0 commit comments