Skip to content

Commit 803e960

Browse files
test: make tests independent of variable order
1 parent 6218859 commit 803e960

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Thermal/thermal.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ using OrdinaryDiffEq: ReturnCode.Success
4949
@test SciMLBase.successful_retcode(sol)
5050
m1, m2 = sol.u[end]
5151
@test m1m2 atol=1e-1
52-
mass_T = reduce(hcat, sol.u)
53-
@test sol[T_sensor1.T.u] == mass_T[1, :]
54-
@test sol[T_sensor2.T.u] == mass_T[2, :]
52+
@test sol[T_sensor1.T.u] == sol[sys.mass1.T]
53+
@test sol[T_sensor2.T.u] == sol[sys.mass2.T]
5554
end
5655

5756
# Test HeatFlowSensor, FixedHeatFlow, ThermalResistor, ThermalConductor

0 commit comments

Comments
 (0)