Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Nov 2, 2023
1 parent 4620e46 commit 7ecc07e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/base/test_arraystorage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ using LinearAlgebra
using Test

module TestArrayStorage
using ITensors
using ITensors.NDTensors.BlockSparseArrays
default_arraystoragetype(space) = Array
default_arraystoragetype(space::Vector{<:Pair{<:QN}}) = BlockSparseArray
using ITensors
using ITensors.NDTensors.BlockSparseArrays
default_arraystoragetype(space) = Array
default_arraystoragetype(space::Vector{<:Pair{<:QN}}) = BlockSparseArray
end

@testset "ITensor Array storage $space" for space in (2, [QN(0) => 2, QN(1) => 3])
Expand All @@ -32,7 +32,8 @@ end

# TODO: Still need to implement.
if space isa Vector{<:Pair{<:QN}}
@test_broken NDTensors.storage(A * B) isa TestArrayStorage.default_arraystoragetype(space)
@test_broken NDTensors.storage(A * B) isa
TestArrayStorage.default_arraystoragetype(space)
@test_broken A[1, 1] = 11
else
@test NDTensors.storage(A * B) isa TestArrayStorage.default_arraystoragetype(space)
Expand Down

0 comments on commit 7ecc07e

Please sign in to comment.