Skip to content

Commit 65693cf

Browse files
committed
test: remove deprecated coverage tests
1 parent 297314e commit 65693cf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/3_test_predictive_control.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -805,12 +805,6 @@ end
805805
linmodel3 = LinModel{Float32}(0.5*ones(1,1), ones(1,1), ones(1,1), 0, 0, 3000.0)
806806
nmpc5 = NonLinMPC(nonlinmodel, Hp=1, Hc=1, Cwt=Inf, transcription=MultipleShooting())
807807
nmpc5 = setconstraint!(nmpc5, ymin=[1])
808-
# execute update_predictions! branch in `gfunc_i` for coverage:
809-
g_Y0min_end = nmpc5.optim[:g_Y0min_1].func
810-
@test_nowarn g_Y0min_end(10.0, 9.0, 8.0, 7.0)
811-
# execute update_predictions! branch in `geqfunc_i` for coverage:
812-
geq_end = nmpc5.optim[:geq_2].func
813-
@test_nowarn geq_end(5.0, 4.0, 3.0, 2.0)
814808
f! = (ẋ,x,u,_,_) -> ẋ .= -0.001x .+ u
815809
h! = (y,x,_,_) -> y .= x
816810
nonlinmodel_c = NonLinModel(f!, h!, 500, 1, 1, 1)

0 commit comments

Comments
 (0)