Skip to content

Commit 417d540

Browse files
add aqua test
1 parent 94ff43d commit 417d540

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ SVMExt = "MLDatasets"
3232
ADNLPModels = "0.7, 0.8"
3333
DifferentialEquations = "7.16"
3434
Distributions = "0.25"
35+
LinearAlgebra = "1.11"
3536
ManualNLPModels = "0.2"
3637
MLDatasets = "0.7"
3738
NLPModels = "0.16, 0.17, 0.18, 0.19, 0.20, 0.21"
3839
Noise = "0.2"
3940
ProximalOperators = "0.15, 0.16"
41+
Random = "1.11"
4042
QuadraticModels = "0.9"
4143
SciMLSensitivity = "7.89"
4244
ShiftedProximalOperators = "0.2"
45+
SparseArrays = "1.11"
4346
julia = "1.10"

src/bpdn_model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export bpdn_model, bpdn_nls_model
1+
export bpdn_model
22

33
function bpdn_data(m::Int, n::Int, k::Int, noise::Float64 = 0.01; bounds::Bool = false)
44
m n || error("number of rows ($m) should be ≤ number of columns ($n)")

test/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[deps]
22
ADNLPModels = "54578032-b7ea-4c30-94aa-7cbd1cce6c9a"
3+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
34
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
45
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
56
ManualNLPModels = "30dfa513-9b2f-4fb3-9796-781eabac1617"
@@ -13,6 +14,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1314

1415
[compat]
1516
ADNLPModels = "0.7, 0.8"
17+
Aqua = "0.8"
1618
DifferentialEquations = "7.16"
1719
ManualNLPModels = "0.2"
1820
MLDatasets = "0.7"

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using LinearAlgebra, Test
2+
using Aqua
23
using ADNLPModels,
34
DifferentialEquations,
45
ManualNLPModels,
@@ -37,6 +38,11 @@ Don't add your tests to runtests.jl. Instead, create files named
3738
3839
The file will be automatically included inside a `@testset` with title "Title For My Test".
3940
=#
41+
42+
@testset "Aqua" begin
43+
Aqua.test_all(RegularizedProblems; ambiguities = false)
44+
end
45+
4046
for (root, dirs, files) in walkdir(@__DIR__)
4147
for file in files
4248
if isnothing(match(r"^test-.*\.jl$", file))

0 commit comments

Comments
 (0)