Skip to content

Commit

Permalink
test eval_at_nemo
Browse files Browse the repository at this point in the history
  • Loading branch information
sumiya11 authored Apr 18, 2024
1 parent 4e54bd4 commit 7877287
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/extensions/modelingtoolkit.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
if GROUP == "All" || GROUP == "ModelingToolkitSIExt"
@testset "eval_at_nemo" begin
using ModelingToolkit, Symbolics
using Nemo

@parameters a01 a21 a12
@variables t x0(t) x1(t)

ring, (a, b, c, x, y) = QQ["a","b","c","x","y"]

nemo = StructuralIdentifiability.eval_at_nemo(
x0(t) + x1(t)*a01^2 + x1(t)^20*(a21 + a12),
Dict(x0(t) => x, x1(t) => y, a01 => a, a21 => b, a12 => c)
)
@test nemo == x + y*a^2 + y^20*(b + c)
end

@testset "Check identifiability of `ODESystem` object" begin
using ModelingToolkit
using ModelingToolkit: parameters
Expand Down

0 comments on commit 7877287

Please sign in to comment.