We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a2a89 commit a47662fCopy full SHA for a47662f
test/components.jl
@@ -21,6 +21,8 @@ end
21
22
function check_rc_sol(sol)
23
rpi = sol[rc_model.resistor.p.i]
24
+ rpifun = sol.prob.f.observed(rc_model.resistor.p.i)
25
+ @test rpifun.(sol.u, (sol.prob.p,), sol.t) == rpi
26
@test any(!isequal(rpi[1]), rpi) # test that we don't have a constant system
27
@test sol[rc_model.resistor.p.i] == sol[resistor.p.i] == sol[capacitor.p.i]
28
@test sol[rc_model.resistor.n.i] == sol[resistor.n.i] == -sol[capacitor.p.i]
0 commit comments