Skip to content

Commit

Permalink
test handling of ifelse in get_massaction
Browse files Browse the repository at this point in the history
  • Loading branch information
paulflang committed Dec 10, 2024
1 parent 79686c5 commit 858a2b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/reactions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,5 @@ m = SBML.Model(species = Dict("s" => s), reactions = Dict("r1" => r))

@test isnan(SBMLToolkit.get_massaction(k1 * s1 * s2, [s1], [1]))
@test isnan(SBMLToolkit.get_massaction(k1 + c1, [s1], [1]))
@test isnan(SBMLToolkit.get_massaction(s1 + ifelse(s1 < k1, s1, k1), [s1], [1]))
@test_throws ErrorException SBMLToolkit.get_massaction(k1, nothing, [1])

0 comments on commit 858a2b5

Please sign in to comment.