Skip to content

Commit 63f7986

Browse files
committed
Improve tests
1 parent 5eb73e8 commit 63f7986

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/test_ttns.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ using Test: @test, @testset
4141
psi = ttn(v -> "Up", sites) # product state
4242

4343
itn = ITensorNetwork(psi) # TTN → ITensorNetwork
44-
new_psi = TreeTensorNetwork(itn) # ITensorNetwork → TTN
45-
46-
@test !(new_psi === itn) # test we make a copy
44+
@test vertex_data(itn) == vertex_data(psi.tensornetwork)
45+
@test !(itn === psi.tensornetwork)
46+
@test vertex_data(TreeTensorNetwork(itn)) == vertex_data(psi)
4747
end
4848

4949
@testset "Ortho" begin

0 commit comments

Comments
 (0)