diff --git a/Project.toml b/Project.toml index 424d48b..d50db71 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "TensorAlgebra" uuid = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a" authors = ["ITensor developers and contributors"] -version = "0.3.2" +version = "0.3.3" [deps] ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a" diff --git a/test/Project.toml b/test/Project.toml index 0223db5..265903d 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -15,7 +15,7 @@ TestExtras = "5ed8adda-3752-4e41-b88a-e8b09835ee3a" [compat] Aqua = "0.8.9" -BlockArrays = "1.4.0" +BlockArrays = "1.6.1" EllipsisNotation = "1.8.0" LinearAlgebra = "<0.0.1, 1" MatrixAlgebraKit = "0.1" diff --git a/test/runtests.jl b/test/runtests.jl index 1c52c3e..98b2d2b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -14,11 +14,13 @@ const GROUP = uppercase( ) "match files of the form `test_*.jl`, but exclude `*setup*.jl`" -istestfile(fn) = - endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup") +function istestfile(fn) + return endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup") +end "match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`" -isexamplefile(fn) = - endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup") +function isexamplefile(fn) + return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup") +end @time begin # tests in groups based on folder structure diff --git a/test/test_blockarrays_contract.jl b/test/test_blockarrays_contract.jl index f337cc7..30f88b3 100644 --- a/test/test_blockarrays_contract.jl +++ b/test/test_blockarrays_contract.jl @@ -1,9 +1,7 @@ -using Random: randn! -using Test: @test, @test_broken, @testset - using BlockArrays: Block, BlockArray, BlockedArray, blockedrange, blocksize - +using Random: randn! using TensorAlgebra: contract +using Test: @test, @testset function randn_blockdiagonal(elt::Type, axes::Tuple) a = zeros(elt, axes) @@ -57,7 +55,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64}) a_dest_dense, dimnames_dest_dense = contract(a3_dense, (1, 2), a3_dense, (2, 1)) @test dimnames_dest == dimnames_dest_dense @test size(a_dest) == size(a_dest_dense) - @test_broken a_dest isa BlockedArray{elt,0} + @test a_dest isa BlockedArray{elt,0} @test a_dest ≈ a_dest_dense # outer product @@ -103,7 +101,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64}) a_dest, dimnames_dest = contract(a3, (1, 2), a3, (2, 1)) @test dimnames_dest == dimnames_dest_dense @test size(a_dest) == size(a_dest_dense) - @test_broken a_dest isa BlockArray{elt,0} + @test a_dest isa BlockArray{elt,0} @test a_dest ≈ a_dest_dense # outer product