Skip to content

Commit

Permalink
fixed test added REQUIRE in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nantonel committed Mar 8, 2018
1 parent 2dc0faf commit 4bf9a49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions test/REQUIRE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
julia 0.6
AbstractOperators 0.0.3
ProximalOperators 0.6.0
6 changes: 3 additions & 3 deletions test/test_lasso_harder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ x0 = zeros(n)+im*zeros(n)
@time it, x, sol = ProximalAlgorithms.FBS(x0; fq=f, Aq=A, g=g, fast = true, tol = 1e-6, maxit = 30000)

@test norm(x-x_star) < 1e-4
@test it < 23000
@test it < 25000

# ZeroFPR/Adaptive
x0 = zeros(n)+im*zeros(n)
@time it, x, sol = ProximalAlgorithms.ZeroFPR(x0; fq=f, Aq=A, g=g, tol = 1e-6)

@test norm(x-x_star) < 1e-4
@test it < 400
@test it < 700

# PANOC/Adaptive
x0 = zeros(n)+im*zeros(n)
@time it, x, sol = ProximalAlgorithms.PANOC(x0; fq=f, Aq=A, g=g, tol = 1e-6)

@test norm(x-x_star) < 1e-4
@test it < 1200
@test it < 1500

0 comments on commit 4bf9a49

Please sign in to comment.