From 95440bde818d6e4783cfcd3d7ac8d7e28ae45173 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 31 Jul 2024 05:55:31 -0400 Subject: [PATCH] Update hierarchical_initialization_eqs.jl --- test/hierarchical_initialization_eqs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/hierarchical_initialization_eqs.jl b/test/hierarchical_initialization_eqs.jl index 82dc3cb566..1e3109a66e 100644 --- a/test/hierarchical_initialization_eqs.jl +++ b/test/hierarchical_initialization_eqs.jl @@ -142,6 +142,6 @@ syslist = ModelingToolkit.get_systems(model) u0 = [] prob = ODEProblem(structural_simplify(model), u0, (0.0, 10.0)) sol = solve(prob, Rodas5P()) -@test length(sol[end]) == 2 +@test length(sol.u[end]) == 2 @test length(equations(prob.f.initializeprob.f.sys)) == 0 @test length(unknowns(prob.f.initializeprob.f.sys)) == 0