Skip to content

Commit c7977ae

Browse files
test: refactor initialization test
1 parent ea15cc7 commit c7977ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/initializationsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ initprob = ModelingToolkit.InitializationProblem(pend, 0.0, [x => 1, y => 0], [g
3232
@test initprob isa NonlinearLeastSquaresProblem
3333
sol = solve(initprob)
3434
@test SciMLBase.successful_retcode(sol)
35-
@test sol.u == [0.0, 0.0, 0.0, 0.0]
35+
@test all(iszero, sol.u)
3636
@test maximum(abs.(sol[conditions])) < 1e-14
3737

3838
initprob = ModelingToolkit.InitializationProblem(

0 commit comments

Comments
 (0)