@@ -37,6 +37,7 @@ for (mod, mod_name) ∈ ((x -> x, "exact"), (LSR1Model, "lsr1"), (LBFGSModel, "l
3737 @test length (out. solution) == bpdn. meta. nvar
3838 @test typeof (out. dual_feas) == eltype (out. solution)
3939 @test out. status == :first_order
40+ @test out. step_status == (out. iter > 0 ? :accepted : :unknown )
4041 end
4142 end
4243 end
@@ -55,6 +56,7 @@ for (mod, mod_name) ∈ ((SpectralGradientModel, "spg"),)
5556 @test length (out. solution) == bpdn. meta. nvar
5657 @test typeof (out. dual_feas) == eltype (out. solution)
5758 @test out. status == :first_order
59+ @test out. step_status == (out. iter > 0 ? :accepted : :unknown )
5860 end
5961 end
6062end
@@ -71,6 +73,7 @@ for (mod, mod_name) ∈ ((LSR1Model, "lsr1"), (LBFGSModel, "lbfgs"))
7173 @test length (TR_out. solution) == bpdn. meta. nvar
7274 @test typeof (TR_out. dual_feas) == eltype (TR_out. solution)
7375 @test TR_out. status == :first_order
76+ @test TR_out. step_status == (TR_out. iter > 0 ? :accepted : :unknown )
7477 end
7578 end
7679end
@@ -90,6 +93,7 @@ for (h, h_name) ∈ ((NormL0(λ), "l0"), (NormL1(λ), "l1"), (IndBallL0(10 * com
9093 @test length (out. solution) == bpdn. meta. nvar
9194 @test typeof (out. dual_feas) == eltype (out. solution)
9295 @test out. status == :first_order
96+ @test out. step_status == (out. iter > 0 ? :accepted : :unknown )
9397 end
9498 end
9599end
@@ -105,6 +109,7 @@ for (h, h_name) ∈ ((NormL1(λ), "l1"),)
105109 @test length (LMTR_out. solution) == bpdn. meta. nvar
106110 @test typeof (LMTR_out. dual_feas) == eltype (LMTR_out. solution)
107111 @test LMTR_out. status == :first_order
112+ @test LMTR_out. step_status == (LMTR_out. iter > 0 ? :accepted : :unknown )
108113 end
109114end
110115
@@ -129,6 +134,7 @@ for (mod, mod_name) ∈ (
129134 @test length (out. solution) == bpdn. meta. nvar
130135 @test typeof (out. dual_feas) == eltype (out. solution)
131136 @test out. status == :first_order
137+ @test out. step_status == (out. iter > 0 ? :accepted : :unknown )
132138 end
133139 end
134140 end
0 commit comments