Skip to content

Commit 978de1e

Browse files
committed
Add test
1 parent 37df5a6 commit 978de1e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/tensoropt.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,11 @@
5555
1,
5656
0, 0, 0, 3, 0, 3, 2, 0, 2, 4])
5757
end
58+
59+
@testset "Issue #206" begin
60+
# https://github.com/Jutho/TensorOperations.jl/issues/206
61+
network = [[:a, :b], [:a], [:b]]
62+
opt_data = Dict(:a => 1, :b => 1)
63+
tree, cost = TensorOperations.optimaltree(network, opt_data)
64+
@test cost == 2
65+
end

0 commit comments

Comments
 (0)