|
1 | 1 | using ITensorBase: ITensorBase, ITensor, Index, IndexName, gettag, hastag, plev, prime, |
2 | 2 | setplev, settag, tags, unsettag |
3 | | -using NamedDimsArrays: dename, denamed, inds, mapinds, name, named |
4 | 3 | using LinearAlgebra: factorize |
| 4 | +using NamedDimsArrays: dename, denamed, inds, mapinds, name, named |
5 | 5 | using Test: @test, @test_broken, @test_throws, @testset |
6 | 6 |
|
7 | 7 | const elts = (Float32, Float64, Complex{Float32}, Complex{Float64}) |
@@ -64,7 +64,6 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64}) |
64 | 64 | @test plev(i) == 0 |
65 | 65 | @test length(tags(i)) == 1 |
66 | 66 | end |
67 | | - |
68 | 67 | end |
69 | 68 | @testset "ITensor basics" begin |
70 | 69 | elt = Float64 |
@@ -116,7 +115,8 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64}) |
116 | 115 |
|
117 | 116 | id = rand(UInt64) |
118 | 117 | i = Index(2; id, tags = ["X" => "Y"]) |
119 | | - @test sprint(show, "text/plain", i) == "Index(length=2|id=$(id % 1000)|\"X\"=>\"Y\")" |
| 118 | + @test sprint(show, "text/plain", i) == |
| 119 | + "Index(length=2|id=$(id % 1000)|\"X\"=>\"Y\")" |
120 | 120 | end |
121 | 121 | @testset "factorize" for elt in elts |
122 | 122 | i = Index(2) |
|
0 commit comments