From 24794303b790f1b6561b8e0690260fbcea91fba0 Mon Sep 17 00:00:00 2001 From: Datseris Date: Thu, 22 Feb 2024 11:39:53 +0000 Subject: [PATCH] increase test coverage --- src/make.jl | 3 ++- test/runtests.jl | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/make.jl b/src/make.jl index 6e16905..96138b2 100644 --- a/src/make.jl +++ b/src/make.jl @@ -1,7 +1,8 @@ """ processes_to_mtkmodel(processes::Vector, default::Vector = []; kw...) -Construct a ModelingToolkit.jl model using the provided `processes` and `default` processes. +Construct a ModelingToolkit.jl model/system using the provided `processes` and `default` processes. +The model/system is _not_ structurally simplified. `processes` is a vector whose elements can be: diff --git a/test/runtests.jl b/test/runtests.jl index 9bc8992..be35d92 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -56,6 +56,7 @@ using OrdinaryDiffEq sys = structural_simplify(sys) @test length(unknowns(sys)) == 1 + @test has_variable(equations(sys), T) u0s = [[300.0], [100.0]] ufs = [] @@ -125,4 +126,6 @@ end @convert_to_parameters A B @test A isa Num @test default_value(A) == 0.5 + + @test default_value(0.5) == 0.5 end