Skip to content

Commit a747023

Browse files
committed
improve code coverage
1 parent 29877df commit a747023

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/other.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ module TestMiscellaneous
112112

113113
@test OperatorStyle(MPO) == MPOStyle()
114114
@test OperatorStyle(InfiniteMPO) == MPOStyle()
115+
@test OperatorStyle(HamiltonianStyle()) == HamiltonianStyle()
116+
@test @constinferred OperatorStyle(MPO, InfiniteMPO, MPO) == MPOStyle()
117+
@test_throws ErrorException OperatorStyle(MPO, HamiltonianStyle())
115118

116119
@test GeometryStyle(FiniteMPOHamiltonian) == FiniteChainStyle()
117120
@test GeometryStyle(InfiniteMPS) == InfiniteChainStyle()

0 commit comments

Comments
 (0)