Skip to content

Commit 382f010

Browse files
Automatic JuliaFormatter.jl run (#57)
Co-authored-by: mtfishman <[email protected]> Co-authored-by: mtfishman <[email protected]>
1 parent fa14829 commit 382f010

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TensorAlgebra"
22
uuid = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.3.2"
4+
version = "0.3.3"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ TestExtras = "5ed8adda-3752-4e41-b88a-e8b09835ee3a"
1515

1616
[compat]
1717
Aqua = "0.8.9"
18-
BlockArrays = "1.4.0"
18+
BlockArrays = "1.6.1"
1919
EllipsisNotation = "1.8.0"
2020
LinearAlgebra = "<0.0.1, 1"
2121
MatrixAlgebraKit = "0.1"

test/runtests.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ const GROUP = uppercase(
1414
)
1515

1616
"match files of the form `test_*.jl`, but exclude `*setup*.jl`"
17-
istestfile(fn) =
18-
endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
17+
function istestfile(fn)
18+
return endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
19+
end
1920
"match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`"
20-
isexamplefile(fn) =
21-
endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
21+
function isexamplefile(fn)
22+
return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
23+
end
2224

2325
@time begin
2426
# tests in groups based on folder structure

test/test_blockarrays_contract.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
using Random: randn!
2-
using Test: @test, @test_broken, @testset
3-
41
using BlockArrays: Block, BlockArray, BlockedArray, blockedrange, blocksize
5-
2+
using Random: randn!
63
using TensorAlgebra: contract
4+
using Test: @test, @testset
75

86
function randn_blockdiagonal(elt::Type, axes::Tuple)
97
a = zeros(elt, axes)
@@ -57,7 +55,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
5755
a_dest_dense, dimnames_dest_dense = contract(a3_dense, (1, 2), a3_dense, (2, 1))
5856
@test dimnames_dest == dimnames_dest_dense
5957
@test size(a_dest) == size(a_dest_dense)
60-
@test_broken a_dest isa BlockedArray{elt,0}
58+
@test a_dest isa BlockedArray{elt,0}
6159
@test a_dest a_dest_dense
6260

6361
# outer product
@@ -103,7 +101,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
103101
a_dest, dimnames_dest = contract(a3, (1, 2), a3, (2, 1))
104102
@test dimnames_dest == dimnames_dest_dense
105103
@test size(a_dest) == size(a_dest_dense)
106-
@test_broken a_dest isa BlockArray{elt,0}
104+
@test a_dest isa BlockArray{elt,0}
107105
@test a_dest a_dest_dense
108106

109107
# outer product

0 commit comments

Comments
 (0)