diff --git a/NDTensors/src/BlockSparseArrays/test/runtests.jl b/NDTensors/src/BlockSparseArrays/test/runtests.jl index 89da2993b5..db84abdd23 100644 --- a/NDTensors/src/BlockSparseArrays/test/runtests.jl +++ b/NDTensors/src/BlockSparseArrays/test/runtests.jl @@ -1,6 +1,6 @@ using Test using NDTensors.BlockSparseArrays -using BlockArrays +using BlockArrays: BlockArrays @testset "Test NDTensors.BlockSparseArrays" begin @testset "README" begin @@ -11,11 +11,11 @@ using BlockArrays ) isa Any end @testset "Mixed block test" begin - blocks = [Block(1, 1), Block(2, 2)] + blocks = [BlockArrays.Block(1, 1), BlockArrays.Block(2, 2)] block_data = [randn(2, 2)', randn(3, 3)] inds = ([2, 3], [2, 3]) A = BlockSparseArray(blocks, block_data, inds) - @test A[Block(1, 1)] == block_data[1] - @test A[Block(1, 2)] == zeros(2, 3) + @test A[BlockArrays.Block(1, 1)] == block_data[1] + @test A[BlockArrays.Block(1, 2)] == zeros(2, 3) end end