Skip to content

Commit 4e70f3c

Browse files
author
Sergio Sánchez Ramírez
committed
Fix Tenet usage in tests
1 parent e6fb5b7 commit 4e70f3c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/LineGraph_test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@testset "LineGraph" begin
22
# connected
3-
network = TensorNetwork([
3+
network = SimpleTensorNetwork([
44
Tensor(rand(2, 2), (:i, :m)),
55
Tensor(rand(2, 2, 2), (:i, :j, :p)),
66
Tensor(rand(2, 2, 2), (:n, :j, :k)),
@@ -19,7 +19,7 @@
1919
@test mapreduce(flops, +, Branches(path1)) >= mapreduce(flops, +, Branches(path2)) - 10
2020
@test contract(network; path = path1) contract(network; path = path2)
2121

22-
# unconnected
22+
# disconnected
2323
network = TensorNetwork([
2424
Tensor(rand(2, 2), (:i, :j)),
2525
Tensor(rand(2, 2), (:i, :j)),

test/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ Metis = "2679e427-3c69-5b7f-982b-ece356f1e94b"
88
NetworkLayout = "46757867-2c16-5918-afeb-47bfcb05e46a"
99
Tenet = "85d41934-b9cd-44e1-8730-56d86f15f3ec"
1010
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
11+
12+
[compat]
13+
Tenet = "0.9"

0 commit comments

Comments
 (0)