From 91db2f9cb3ef6afae8ac1eaac1932f0f2f75739c Mon Sep 17 00:00:00 2001 From: mtfishman Date: Mon, 6 May 2024 08:34:28 -0400 Subject: [PATCH] Update test --- src/ITensorMPS.jl | 2 +- test/Project.toml | 1 + test/runtests.jl | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ITensorMPS.jl b/src/ITensorMPS.jl index abf6120..dca6795 100644 --- a/src/ITensorMPS.jl +++ b/src/ITensorMPS.jl @@ -2,7 +2,7 @@ module ITensorMPS using ITensorTDVP: TimeDependentSum, dmrg_x, linsolve, tdvp, to_vec export TimeDependentSum, dmrg_x, linsolve, tdvp, to_vec using ITensorTDVP: ITensorTDVP -alternating_update_dmrg(args...; kwargs...) = ITensorTDVP.dmrg(args...; kwargs...) +const alternating_update_dmrg = ITensorTDVP.dmrg using ITensors.ITensorMPS: dmrg export dmrg end diff --git a/test/Project.toml b/test/Project.toml index 8e52c88..d1392c8 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,3 +1,4 @@ [deps] ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2" +ITensorTDVP = "25707e16-a4db-4a07-99d9-4d67b7af0342" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/test/runtests.jl b/test/runtests.jl index 8a561c4..ba12a69 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,6 @@ @eval module $(gensym()) using ITensorMPS: ITensorMPS +using ITensorTDVP: ITensorTDVP using Test: @test, @testset @testset "ITensorMPS.jl" begin @testset "exports" begin @@ -18,5 +19,8 @@ using Test: @test, @testset ], ) end + @testset "aliases" begin + @test ITensorMPS.alternating_update_dmrg === ITensorTDVP.dmrg + end end end