Skip to content

Commit a037ee5

Browse files
authored
Fix Printing changes from FillArrays (#132)
* Fix Printing changes from FillArrays * Update Project.toml * Update test_blockarrayinterface.jl * Update Project.toml
1 parent 85e6d55 commit a037ee5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "BlockArrays"
22
uuid = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
3-
version = "0.12.12"
3+
version = "0.12.13"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -9,9 +9,9 @@ FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
99
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010

1111
[compat]
12-
ArrayLayouts = "0.4.1"
12+
ArrayLayouts = "0.4.8"
1313
Compat = "2.2, 3"
14-
FillArrays = "0.9.2"
14+
FillArrays = "0.9.6"
1515
julia = "1.1"
1616

1717
[extras]

test/test_blockarrayinterface.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ end
123123
A = Fill(2,(blockedrange([1,2,2]),))
124124
@test A[Block(1)] == [2]
125125
@test A[Block.(1:2)] == [2,2,2]
126-
@test_broken A[Block(1)] isa Fill
127-
@test_broken A[Block.(1:2)] isa Fill
128-
@test_broken 2A
126+
@test A[Block(1)] isa Fill
127+
@test A[Block.(1:2)] isa Fill
128+
@test_broken 2A Fill(4,axes(A))
129129

130130

131131
B = Eye((blockedrange([1,2]),))
@@ -138,7 +138,7 @@ end
138138

139139
if VERSION  v"1.2"
140140
@test stringmime("text/plain", A) == "5-element Fill{Int64,1,Tuple{BlockedUnitRange{Array{Int64,1}}}} with indices 1:1:5: entries equal to 2"
141-
@test stringmime("text/plain", B) == "3×3 Diagonal{Float64,Ones{Float64,1,Tuple{BlockedUnitRange{Array{Int64,1}}}}} with indices 1:1:3×1:1:3:\n 1.0 │ ⋅ ⋅ \n ─────┼──────────\n ⋅ │ 1.0 ⋅ \n ⋅ │ ⋅ 1.0"
141+
@test stringmime("text/plain", B) == "3×3 Diagonal{Float64,Ones{Float64,1,Tuple{BlockedUnitRange{Array{Int64,1}}}}} with indices 1:1:3×1:1:3"
142142
@test stringmime("text/plain", U) == "3×3 UpperTriangular{Float64,Ones{Float64,2,Tuple{BlockedUnitRange{Array{Int64,1}},BlockedUnitRange{Array{Int64,1}}}}} with indices 1:1:3×1:1:3:\n 1.0 1.0 │ 1.0\n ──────────┼─────\n ⋅ 1.0 │ 1.0\n ⋅ ⋅ │ 1.0"
143143
end
144144
end

0 commit comments

Comments
 (0)