Skip to content

Commit a47662f

Browse files
committed
Add tests
1 parent 18a2a89 commit a47662f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/components.jl

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ end
2121

2222
function check_rc_sol(sol)
2323
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
2426
@test any(!isequal(rpi[1]), rpi) # test that we don't have a constant system
2527
@test sol[rc_model.resistor.p.i] == sol[resistor.p.i] == sol[capacitor.p.i]
2628
@test sol[rc_model.resistor.n.i] == sol[resistor.n.i] == -sol[capacitor.p.i]

0 commit comments

Comments
 (0)