Skip to content

Commit 2ef50c4

Browse files
test: fix hybrid model simulation test
1 parent 1d228ce commit 2ef50c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/simulation_and_solving/hybrid_models.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,10 @@ let
324324

325325
# Checks case: X Float32 (non-default float), Y Float32 (non-default). Everything is converted to Float32.
326326
u0 = (:X => 1.0f0, :Y => 1.0f0)
327+
ps = [:d => 0.5f0]
327328
prob = JumpProblem(JumpInputs(rn, u0, (0.0, 1.0), ps; remake_warn = false))
328329
int = init(prob, Tsit5())
329330
sol = solve(prob, Tsit5())
330331
@test typeof(prob[:X]) == typeof(int[:X]) == typeof(sol[:X][end]) == Float32
331332
@test typeof(prob[:Y]) == typeof(int[:Y]) == typeof(sol[:Y][end]) == Float32
332-
end
333+
end

0 commit comments

Comments
 (0)