Skip to content

Commit 6beffff

Browse files
geoffroylecontedpo
authored andcommitted
increase coverage
1 parent 39d0026 commit 6beffff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/runtests.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using LinearAlgebra, Printf, SparseArrays, Test
33

44
# our packages
55
using ADNLPModels,
6-
LinearOperators, NLPModels, NLPModelsModifiers, NLPModelsTest, QPSReader, QuadraticModels
6+
LinearOperators, NLPModels, NLPModelsModifiers, NLPModelsTest, QPSReader, QuadraticModels, SparseMatricesCOO
77

88
@testset "test utils" begin
99
A = rand(10, 10)
@@ -12,6 +12,8 @@ using ADNLPModels,
1212
@test nnz(Symmetric(A)) == 55
1313
v1, v2 = rand(10), rand(9)
1414
@test nnz(SymTridiagonal(v1, v2)) == 19
15+
Asp = sparse([1. 0. 0. ; 1. 0. 0. ; 0. 3. 2.])
16+
@test nnz(Symmetric(Asp, :L)) == 4
1517
end
1618

1719
# Definition of quadratic problems
@@ -161,7 +163,7 @@ end
161163
ucon = lcon .+ 100.0
162164
qp = QuadraticModel(
163165
c,
164-
H,
166+
SparseMatrixCOO(H.data),
165167
A = A,
166168
lcon = lcon,
167169
ucon = ucon,

0 commit comments

Comments
 (0)