Skip to content

Commit a32d050

Browse files
committed
Move test utilities to test folder
1 parent c440aff commit a32d050

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/PDMats.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ module PDMats
5858
include("generics.jl")
5959
include("addition.jl")
6060

61-
include("testutils.jl")
62-
6361
include("deprecates.jl")
6462

6563
end # module

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include("testutils.jl")
12
tests = ["pdmtypes", "addition", "generics", "kron"]
23
println("Running tests ...")
34

src/testutils.jl renamed to test/testutils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# the implementation of a subtype of AbstractPDMat
55
#
66

7-
using Test: @test
7+
using PDMats, SuiteSparse, Test
88

9+
const HAVE_CHOLMOD = isdefined(SuiteSparse, :CHOLMOD)
910
const PDMatType = HAVE_CHOLMOD ? Union{PDMat, PDSparseMat, PDiagMat} : Union{PDMat, PDiagMat}
1011

1112
## driver function
@@ -244,7 +245,7 @@ end
244245

245246

246247
function pdtest_whiten(C::AbstractPDMat, Cmat::Matrix, verbose::Int)
247-
Y = chol_lower(Cmat)
248+
Y = PDMats.chol_lower(Cmat)
248249
Q = qr(convert(Array{eltype(C),2},randn(size(Cmat)))).Q
249250
Y = Y * Q' # generate a matrix Y such that Y * Y' = C
250251
@test Y * Y' Cmat

0 commit comments

Comments
 (0)