Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed Dec 2, 2023
1 parent 4bdc92c commit 38e82f4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/dsl/dsl_options.jl
Original file line number Diff line number Diff line change
@@ -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 ###
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 38e82f4

Please sign in to comment.