Skip to content

Commit 2197a51

Browse files
MaxenceGollierdpo
authored andcommitted
remove FHist from tests
1 parent be29a75 commit 2197a51

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

test/test_bounds.jl

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,9 @@ for (h, h_name) ∈ ((NormL0(λ), "l0"), (NormL1(λ), "l1"))
6868
x0 = x0,
6969
subsolver = TRDHSolver,
7070
)
71-
@test typeof(LMTR_out.solution) == typeof(bpdn_nls2.meta.x0)
72-
@test length(LMTR_out.solution) == bpdn_nls2.meta.nvar
73-
@test typeof(LMTR_out.solver_specific[:Fhist]) == typeof(LMTR_out.solution)
74-
@test typeof(LMTR_out.solver_specific[:Hhist]) == typeof(LMTR_out.solution)
75-
@test typeof(LMTR_out.solver_specific[:SubsolverCounter]) == Array{Int, 1}
71+
@test typeof(LMTR_out.solution) == typeof(bpdn.meta.x0)
72+
@test length(LMTR_out.solution) == bpdn.meta.nvar
7673
@test typeof(LMTR_out.dual_feas) == eltype(LMTR_out.solution)
77-
@test length(LMTR_out.solver_specific[:Fhist]) == length(LMTR_out.solver_specific[:Hhist])
78-
@test length(LMTR_out.solver_specific[:Fhist]) ==
79-
length(LMTR_out.solver_specific[:SubsolverCounter])
80-
@test length(LMTR_out.solver_specific[:Fhist]) == length(LMTR_out.solver_specific[:NLSGradHist])
81-
@test LMTR_out.solver_specific[:NLSGradHist][end] ==
82-
bpdn_nls2.counters.neval_jprod_residual + bpdn_nls2.counters.neval_jtprod_residual - 1
83-
@test obj(bpdn_nls2, LMTR_out.solution) == LMTR_out.solver_specific[:Fhist][end]
84-
@test h(LMTR_out.solution) == LMTR_out.solver_specific[:Hhist][end]
8574
@test LMTR_out.status == :first_order
8675
end
8776
end

0 commit comments

Comments
 (0)