Skip to content

Commit fe195b8

Browse files
fixup! test: add tests for FMIComponent
1 parent 632e311 commit fe195b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/extensions/fmi.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import ModelingToolkit as MTK
99
prob = ODEProblem{true, SciMLBase.FullSpecialize}(
1010
sys, [sys.mass__s => 0.5, sys.mass__v => 0.0], (0.0, 8.0))
1111
sol = solve(prob, Tsit5(); reltol = 1e-8, abstol = 1e-8)
12+
@test SciMLBase.successful_retcode(sol)
1213

1314
truesol = FMI.simulate(fmu, (0.0, 8.0); saveat = 0.0:0.1:8.0)
1415
@test sol(0.0:0.1:8.0).utruesol.states.u atol=1e-4

0 commit comments

Comments
 (0)