Skip to content

Commit 6d8418a

Browse files
authored
Make tests modular (#197)
1 parent a0682e0 commit 6d8418a

10 files changed

+37
-3
lines changed

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using BlockBandedMatrices
2-
using LinearAlgebra
32
using Test
43

54
using Aqua

test/test_adjtransblockbanded.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
module TestAdjTransBlockBanded
2+
13
using ArrayLayouts, BlockBandedMatrices, Test
2-
import BlockBandedMatrices: BandedBlockBandedRowMajor, BandedBlockBandedRows,
3-
BandedBlockBandedColumns, BlockBandedRows,
4+
import BlockBandedMatrices: BandedBlockBandedRowMajor, BandedBlockBandedRows,
5+
BandedBlockBandedColumns, BlockBandedRows,
46
BlockBandedColumns, blockcolsupport, blockrowsupport
57

68
@testset "Adj/Trans" begin
@@ -62,3 +64,5 @@ import BlockBandedMatrices: BandedBlockBandedRowMajor, BandedBlockBandedRows,
6264
@test colsupport(E2', 1) == 1:0
6365
end
6466
end
67+
68+
end # module

test/test_bandedblockbanded.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
module TestBandedBlockBanded
2+
13
using ArrayLayouts
24
using BandedMatrices
35
using BlockArrays
@@ -564,3 +566,5 @@ if false # turned off since tests have check-bounds=yes
564566
BandedMatrices.inbands_setindex!(V, -2, 5, 1)
565567
@test A[2,1] == -2
566568
end
569+
570+
end # module

test/test_blockbanded.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
module TestBlockBanded
2+
13
using ArrayLayouts
24
using BandedMatrices
35
using BlockArrays
@@ -246,3 +248,5 @@ import BlockBandedMatrices: MemoryLayout, ColumnMajor, BroadcastStyle,
246248
@inferred(f(s))
247249
end
248250
end
251+
252+
end # module

test/test_blockskyline.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
module TestBlockSkyline
2+
13
using ArrayLayouts
24
using BlockArrays
35
using BlockBandedMatrices
@@ -163,3 +165,5 @@ Random.seed!(0)
163165
@test s == " 1 │ 0 0 │ ⋅ ⋅ ⋅ │ ⋅ ⋅ ⋅ ⋅"
164166
end
165167
end
168+
169+
end # module

test/test_blockskylineqr.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
module TestBlockSkylineQR
2+
13
using BlockBandedMatrices
24
using BlockArrays
35
using LinearAlgebra
@@ -201,3 +203,5 @@ end
201203
# @time F = qr(A); # 11s
202204
# b = randn(size(A,1));
203205
# @time F\b; # 0.6s
206+
207+
end # module

test/test_broadcasting.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
module TestBroadcasting
2+
13
using ArrayLayouts
24
using BandedMatrices
35
using BlockArrays
@@ -287,3 +289,5 @@ import Base: oneto
287289
end
288290
end
289291
end
292+
293+
end # module

test/test_linalg.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
module TestLinalg
2+
13
using ArrayLayouts
24
using BandedMatrices
35
using BlockArrays
@@ -201,3 +203,5 @@ end
201203
@test cholesky(Symmetric(Δ)).U cholesky(Matrix(Δ)).U
202204
@test cholesky(Symmetric(Δ,:L)).U cholesky(Matrix(Δ)).U
203205
end
206+
207+
end # module

test/test_misc.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
module TestMisc
2+
13
using ArrayLayouts
24
using BandedMatrices
35
using BlockArrays
@@ -246,3 +248,4 @@ Base.size(F::FiniteDifference) = (F.n,F.n)
246248
end
247249
end
248250

251+
end # module

test/test_triblockbanded.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
module TestTriBlockBanded
2+
13
using ArrayLayouts
24
using BandedMatrices
35
using BlockArrays
@@ -209,3 +211,5 @@ import BlockArrays: blockisequal
209211
@test UpperTriangular(V2) \ b UpperTriangular(V) \ b
210212
end
211213
end
214+
215+
end # module

0 commit comments

Comments
 (0)