From 38e82f49cd2e05414c1a271b91c7e32c5cc5ee09 Mon Sep 17 00:00:00 2001 From: Torkel Date: Fri, 1 Dec 2023 22:46:43 -0500 Subject: [PATCH] up --- test/dsl/dsl_options.jl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/dsl/dsl_options.jl b/test/dsl/dsl_options.jl index 3cbfe611e1..9ce560928c 100644 --- a/test/dsl/dsl_options.jl +++ b/test/dsl/dsl_options.jl @@ -1,7 +1,13 @@ #! format: off ### Fetch Packages and Set Global Variables ### -using Catalyst, ModelingToolkit, Plots +using Catalyst, ModelingToolkit, OrdinaryDiffEq, Plots + +# Sets rnd number. +using StableRNGs +rng = StableRNG(12345) + +# Sets globally used variable @variables t ### Run Tests ### @@ -501,9 +507,9 @@ let # Checks that set and get index works for variables. @test oprob[V] == u0[V] oprob[V] = 2.0 - @test_broken oprob[V] == 2.0 + @test oprob[V] == 2.0 integrator = init(oprob, Tsit5()) - @test_broken integrator[V] == 2.0 + @test integrator[V] == 2.0 integrator[V] = 5.0 @test integrator[V] == 5.0