diff --git a/test/planar.jl b/test/planar.jl index 6a6ec981..af869596 100644 --- a/test/planar.jl +++ b/test/planar.jl @@ -20,22 +20,22 @@ using TensorOperations @testset "planaradd" begin A = TensorMap(randn, V1 ⊗ V2 ← V3 ⊗ V4 ⊗ V5) C = TensorMap(randn, V4' ⊗ V3' ← V5 ⊗ V2' ⊗ V1') - + A′ = force_planar(A) C′ = force_planar(C) - + p = ((4, 3), (5, 2, 1)) - + @test force_planar(tensoradd!(C, p, A, :N, true, true)) ≈ planaradd!(C′, A′, p, true, true) end @testset "planartrace" begin A = TensorMap(randn, V1 ⊗ V2 ← V1 ⊗ V4 ⊗ V5) C = TensorMap(randn, V4' ⊗ V2 ← V5) - + A′ = force_planar(A) C′ = force_planar(C) - + p = ((4, 2), (5,)) q = ((1,), (3,)) diff --git a/test/tensors.jl b/test/tensors.jl index 6c45b949..4e3a53a6 100644 --- a/test/tensors.jl +++ b/test/tensors.jl @@ -12,7 +12,7 @@ using Combinatorics: permutations end Istr = TensorKit.type_repr(I) println("Starting tests for $Istr...") - + V1, V2, V3, V4, V5 = V @assert V3 * V4 * V2 ≿ V1' * V5' "leftorth tests assumption" @assert V3 * V4 ≾ V1' * V2' * V5' "rightorth tests assumption"