diff --git a/test/base/test_emptyitensor.jl b/test/base/test_emptyitensor.jl index 90fa6f71dc..07171b60a3 100644 --- a/test/base/test_emptyitensor.jl +++ b/test/base/test_emptyitensor.jl @@ -70,19 +70,29 @@ end @test hassameinds(C, (i'', i)) storage(C) storage(C) - @test storage(C) isa BlockSparse{NDTensors.UnspecifiedZero, NDTensors.UnallocatedZeros{NDTensors.UnspecifiedZero, 1, Tuple{Base.OneTo{Int64}}, Vector{NDTensors.UnspecifiedZero}}, 2} + @test storage(C) isa BlockSparse{ + NDTensors.UnspecifiedZero, + NDTensors.UnallocatedZeros{ + NDTensors.UnspecifiedZero,1,Tuple{Base.OneTo{Int64}},Vector{NDTensors.UnspecifiedZero} + }, + 2, + } B = randomITensor(dag(i), i') C = A' * B @test hassameinds(C, (i'', i)) - @test storage(C) isa BlockSparse{Float64, NDTensors.UnallocatedZeros{Float64, 1, Tuple{Base.OneTo{Int64}}, Vector{Float64}}, 2} + @test storage(C) isa BlockSparse{ + Float64,NDTensors.UnallocatedZeros{Float64,1,Tuple{Base.OneTo{Int64}},Vector{Float64}},2 + } C = B' * A @test hassameinds(C, (i'', i)) - @test storage(C) isa BlockSparse{Float64, NDTensors.UnallocatedZeros{Float64, 1, Tuple{Base.OneTo{Int64}}, Vector{Float64}}, 2} + @test storage(C) isa BlockSparse{ + Float64,NDTensors.UnallocatedZeros{Float64,1,Tuple{Base.OneTo{Int64}},Vector{Float64}},2 + } C = B + A @test inds(C) == inds(B) diff --git a/test/base/test_fermions.jl b/test/base/test_fermions.jl index 233f07249a..1d34b20d20 100644 --- a/test/base/test_fermions.jl +++ b/test/base/test_fermions.jl @@ -970,7 +970,7 @@ import ITensors: Out, In s = siteinds("Fermion", N; conserve_qns=true) T = ITensor(QN("Nf", 0, -1), dag(s[1]), s[1]') - T[2, 2] = 1. + T[2, 2] = 1.0 F = eigen(T; ishermitian=true, cutoff=cutoff) D, U, spec = F