From 4f70a46efc5ccfaea5b7a3b5949a745dbc0163a0 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Mon, 29 Jan 2024 14:22:26 +0530 Subject: [PATCH] fixup! test: update tests for MTKv9 --- test/downstream/solution_interface.jl | 2 +- test/downstream/symbol_indexing.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/downstream/solution_interface.jl b/test/downstream/solution_interface.jl index 7473fcca5..ecc8380f4 100644 --- a/test/downstream/solution_interface.jl +++ b/test/downstream/solution_interface.jl @@ -1,6 +1,6 @@ using ModelingToolkit, OrdinaryDiffEq, RecursiveArrayTools, StochasticDiffEq, Test # compat for MTKv8 and v9 -unknowns = isdefined(ModelingToolkit.states) ? ModelingToolkit.states : ModelingToolkit.unknowns +unknowns = isdefined(ModelingToolkit, states) ? ModelingToolkit.states : ModelingToolkit.unknowns ### Tests on non-layered model (everything should work). ### diff --git a/test/downstream/symbol_indexing.jl b/test/downstream/symbol_indexing.jl index 3dd915a21..e7885ec5a 100644 --- a/test/downstream/symbol_indexing.jl +++ b/test/downstream/symbol_indexing.jl @@ -1,7 +1,7 @@ using ModelingToolkit, OrdinaryDiffEq, RecursiveArrayTools, SymbolicIndexingInterface, Test using Optimization, OptimizationOptimJL # compat for MTKv8 and v9 -unknowns = isdefined(ModelingToolkit.states) ? ModelingToolkit.states : ModelingToolkit.unknowns +unknowns = isdefined(ModelingToolkit, states) ? ModelingToolkit.states : ModelingToolkit.unknowns @parameters t σ ρ β @variables x(t) y(t) z(t)