Skip to content

Commit 6ce6bda

Browse files
authored
fix whitespace (#224)
1 parent 0b436f2 commit 6ce6bda

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/blocklinalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function _copyto!(_, ::AbstractBlockLayout, dest::AbstractMatrix, src::AbstractM
144144
for K = first(CS_d):first(CS_s)-Block(1)
145145
zero!(view(dest,K,J))
146146
end
147-
for K = CS_s
147+
for K = CS_s
148148
copyto!(view(dest,K,J), view(src,K,J))
149149
end
150150
for K = last(CS_s)+Block(1):last(CS_d)

test/test_blockarrays.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ end
501501
@test A == B
502502
B[1] = 2
503503
@test B[1] == 2
504-
@test A[1]  2
504+
@test A[1] 2
505505

506506
A = BlockArray(randn(6), 1:3)
507507
B = copy(A)
@@ -510,7 +510,7 @@ end
510510
@test A == B
511511
B[1] = 2
512512
@test B[1] == 2
513-
@test A[1]  2
513+
@test A[1] 2
514514
@testset "copyto!" begin
515515
A = PseudoBlockArray(randn(6), 1:3)
516516
B = BlockArray(randn(6), 1:3)

test/test_blockcholesky.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Random.seed!(0)
3333
#Tests on A
3434
@test cholesky(A).U cholesky(A_T).U
3535
@test cholesky(A).U'cholesky(A).U A
36-
36+
3737
#Tests on B
3838
@test cholesky(B).U cholesky(B_T).U
3939
@test cholesky(B).U'cholesky(B).U B

test/test_blockindices.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ end
359359

360360
# @test_throws BlockBoundsError A[Block(3)]
361361
# @test_throws BlockBoundsError A[Block(3)[1]]
362-
# @test_throws BoundsError A[Block(3)[1:1]] # this is likely an error
362+
# @test_throws BoundsError A[Block(3)[1:1]] # this is likely an error
363363
# @test_throws BoundsError A[Block(2)[3]]
364364
# @test_throws BoundsError A[Block(2)[3:3]]
365365
# end

test/test_blockviews.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,30 +190,30 @@ bview(a, b) = Base.invoke(view, Tuple{AbstractArray,Any}, a, b)
190190
@testset "non-allocation blocksize" begin
191191
A = BlockArray(randn(5050), 1:100)
192192
@test blocksize(A) == (100,)
193-
@test @allocated(blocksize(A))  40
193+
@test @allocated(blocksize(A)) 40
194194
V = view(A, Block(3))
195195
@test blocksize(V) == (1,)
196-
@test @allocated(blocksize(V))  40
196+
@test @allocated(blocksize(V)) 40
197197
V = view(A, Block.(1:30))
198198
@test blocksize(V) == (30,)
199-
@test @allocated(blocksize(V))  40
199+
@test @allocated(blocksize(V)) 40
200200
V = view(A, 3:43)
201201
@test blocksize(V) == (1,)
202202
V = view(A, 5)
203203
@test blocksize(V) == ()
204204

205205
A = BlockArray(randn(5050,21), 1:100, 1:6)
206206
@test blocksize(A) == (100,6)
207-
@test @allocated(blocksize(A))  40
207+
@test @allocated(blocksize(A)) 40
208208
V = view(A, Block(3,2))
209209
@test blocksize(V) == (1,1)
210-
@test @allocated(blocksize(V))  40
210+
@test @allocated(blocksize(V)) 40
211211
V = view(A, Block.(1:30), Block(3))
212212
@test blocksize(V) == (30,1)
213-
@test @allocated(blocksize(V))  40
213+
@test @allocated(blocksize(V)) 40
214214
V = view(A, Block.(1:30), Block.(1:3))
215215
@test blocksize(V) == (30,3)
216-
@test @allocated(blocksize(V))  40
216+
@test @allocated(blocksize(V)) 40
217217
V = view(A, 3:43,1:3)
218218
@test blocksize(V) == (1,1)
219219
V = view(A, 5, 1:3)

0 commit comments

Comments
 (0)