Skip to content

Commit 6b68a54

Browse files
committed
fix zerodim tests
1 parent 22d91f9 commit 6b68a54

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ WignerSymbols = "9f57e263-0b3d-5e2e-b1be-24f2bb48858b"
2222
[compat]
2323
Accessors = "0.1.39"
2424
BlockArrays = "1.2.0"
25-
BlockSparseArrays = "0.2.0"
25+
BlockSparseArrays = "0.2.9"
2626
GradedUnitRanges = "0.1.1"
2727
HalfIntegers = "1.6.0"
2828
LRUCache = "1.6.1"

test/basics/test_array_cast.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@eval module $(gensym())
22
using LinearAlgebra: LinearAlgebra, norm
3-
using Test: @test, @test_broken, @test_throws, @testset
3+
using Test: @test, @test_throws, @testset
44

55
using BlockArrays: Block, BlockedArray, blocksize
66

@@ -197,17 +197,16 @@ end
197197
@test Array(ft4) v
198198
@test Array(adjoint(ft4)) v
199199

200-
zerodim = ones(())
201-
if VERSION < v"1.11"
202-
@test_broken to_fusiontensor(zerodim, (), ()) isa FusionTensor # https://github.com/JuliaLang/julia/issues/52615
203-
else
200+
if VERSION >= v"1.11" # https://github.com/JuliaLang/julia/issues/52615
201+
zerodim = ones(())
204202
ft = to_fusiontensor(zerodim, (), ())
205203
@test ft isa FusionTensor
206204
@test ndims(ft) == 0
207205
@test isnothing(check_sanity(ft))
208206
@test size(data_matrix(ft)) == (1, 1)
209207
@test data_matrix(ft)[1, 1] 1.0
210-
@test_broken Array(ft) zerodim # https://github.com/ITensor/BlockSparseArrays.jl/issues/27
208+
@test Array(ft) zerodim
209+
@test ndims(Array(ft)) == 0
211210
end
212211
end
213212
end

0 commit comments

Comments
 (0)