Skip to content

Commit

Permalink
increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Feb 22, 2024
1 parent e7cc853 commit 2479430
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/make.jl
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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

0 comments on commit 2479430

Please sign in to comment.