Skip to content

Commit 09ec38e

Browse files
committed
test forbidden block
1 parent 6a99562 commit 09ec38e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_basics.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ include("setup.jl")
6060
@test sector_type(ft1) === U1{Int}
6161
@test sector_type(typeof(ft1)) === U1{Int}
6262

63+
m1 = BlockSparseArray{Float64}(undef, g1, g2)
64+
m1[Block(2, 1)] = ones(2, 2) # forbidden
65+
@test_throws ArgumentError FusionTensor(m1, (g1,), (g2,))
66+
6367
# Base methods
6468
@test eltype(ft1) === Float64
6569
@test length(ft1) == 30

0 commit comments

Comments
 (0)