Skip to content

Commit

Permalink
Fix equality comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Sep 7, 2024
1 parent fb36188 commit 570fcec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/TensorNetwork_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -587,14 +587,14 @@

tn = TensorNetwork([Tensor(zeros(2, 2), [:i, :j]), Tensor(zeros(2, 2, 2), [:i, :j, :k])])
groupinds!(tn, :i)
@test inds(tn) == [:i, :k]
@test issetequal(inds(tn), [:i, :k])
@test size(tn, :i) == 4
@test size(tn, :k) == 2
@test Tenet.ntensors(tn) == 2

tn = TensorNetwork([Tensor(zeros(2, 2), [:i, :j]), Tensor(zeros(2, 2), [:i, :j]), Tensor(zeros(2), [:j])])
groupinds!(tn, :i)
@test inds(tn) == [:i, :j]
@test issetequal(inds(tn), [:i, :j])
@test size(tn, :i) == 2
@test size(tn, :j) == 2
@test Tenet.ntensors(tn) == 2
Expand Down

0 comments on commit 570fcec

Please sign in to comment.