From 015d2e21075d1bd6c0729c5a76c02007311500da Mon Sep 17 00:00:00 2001 From: mtfishman Date: Wed, 3 Apr 2024 13:24:05 -0400 Subject: [PATCH] Fix tests --- src/treetensornetworks/ttn.jl | 4 ---- test/test_itensornetwork.jl | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/treetensornetworks/ttn.jl b/src/treetensornetworks/ttn.jl index 09364103..286fbe70 100644 --- a/src/treetensornetworks/ttn.jl +++ b/src/treetensornetworks/ttn.jl @@ -26,10 +26,6 @@ end const TTN = TreeTensorNetwork -function ttn(itensor_network::ITensorNetwork, ortho_center::Vector) - return ttn(itensor_network, ortho_center) -end - function data_graph_type(G::Type{<:TTN}) return data_graph_type(fieldtype(G, :itensor_network)) end diff --git a/test/test_itensornetwork.jl b/test/test_itensornetwork.jl index c6d56b84..92111869 100644 --- a/test/test_itensornetwork.jl +++ b/test/test_itensornetwork.jl @@ -170,7 +170,7 @@ using Test: @test, @test_broken, @testset ψ = random_itensornetwork(elt, g; link_space) @test eltype(ψ[first(vertices(ψ))]) == elt ψ = random_itensornetwork(g; link_space) - @test elt(ψ[first(vertices(ψ))]) == Float64 + @test eltype(ψ[first(vertices(ψ))]) == Float64 ψ = ITensorNetwork(elt, undef, g; link_space) @test eltype(ψ[first(vertices(ψ))]) == elt ψ = ITensorNetwork(undef, g)