Skip to content

Commit 1414fd7

Browse files
committed
test: bit wiser
1 parent a93a568 commit 1414fd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/2_test_state_estim.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,10 +1191,10 @@ end
11911191
@test all((mhe3.con.C_v̂min, mhe3.con.C_v̂max) .≈ (0.03(11:18), 0.04(11:18)))
11921192

11931193
# TODO: delete these tests when the deprecated legacy splatting syntax will be.
1194-
mhe4 = MovingHorizonEstimator(nonlinmodel, He=4, nint_ym=0, Cwt=1e3, oracle=false)
1195-
setconstraint!(mhe3, C_x̂min=0.01(1:10), C_x̂max=0.02(1:10))
1196-
@test all((mhe3.con.C_x̂min, mhe3.con.C_x̂max) .≈ (0.01(3:10), 0.02(3:10)))
1197-
setconstraint!(mhe3, C_v̂min=0.03(11:18), C_v̂max=0.04(11:18))
1194+
@test_nowarn mhe4 = MovingHorizonEstimator(nonlinmodel, He=4, nint_ym=0, Cwt=1e3, oracle=false)
1195+
@test_nowarn setconstraint!(mhe3, C_x̂min=0.01(1:10), C_x̂max=0.02(1:10))
1196+
@test_nowarn @test all((mhe3.con.C_x̂min, mhe3.con.C_x̂max) .≈ (0.01(3:10), 0.02(3:10)))
1197+
@test_nowarn setconstraint!(mhe3, C_v̂min=0.03(11:18), C_v̂max=0.04(11:18))
11981198
@test all((mhe3.con.C_v̂min, mhe3.con.C_v̂max) .≈ (0.03(11:18), 0.04(11:18)))
11991199

12001200
@test_throws ArgumentError setconstraint!(mhe2, x̂min=[-1])

0 commit comments

Comments
 (0)