From 9c562863e72f7ba5e101acecbfb02e3e22f0e22a Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Tue, 9 Jan 2024 17:48:29 +0530 Subject: [PATCH] test: fix integrator indexing tests --- test/downstream/integrator_indexing.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/downstream/integrator_indexing.jl b/test/downstream/integrator_indexing.jl index b5f74cba1..1dff154d9 100644 --- a/test/downstream/integrator_indexing.jl +++ b/test/downstream/integrator_indexing.jl @@ -309,7 +309,7 @@ eqs = [collect(D.(x) .~ x) D(y) ~ norm(x) * y - x[1]] @named sys = ODESystem(eqs, t, [sts...;], [ps...;]) prob = ODEProblem(sys, [], (0, 1.0)) -integrator = init(prob, Tsit5()) +integrator = init(prob, Tsit5(), save_everystep = false) @test integrator[x] isa Vector{Float64} @test integrator[@nonamespace sys.x] isa Vector{Float64} @@ -333,8 +333,6 @@ setx!(integrator, [4.0, 5.0, 6.0]) @test getx(integrator) == [4.0, 5.0, 6.0] sety!(integrator, 3.0) @test gety(integrator) == 3.0 -set_arr!(integrator, [1.0, 2.0]) -@test get_arr(integrator) == [[1.0, 1.0, 1.0], 2.0] set_arr!(integrator, [[1.0, 2.0, 3.0], 1.0]) @test get_arr(integrator) == [[1.0, 2.0, 3.0], 1.0] set_tuple!(integrator, ([2.0, 4.0, 6.0], 2.0))