Skip to content

Commit 858a2b5

Browse files
committed
test handling of ifelse in get_massaction
1 parent 79686c5 commit 858a2b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/reactions.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,5 @@ m = SBML.Model(species = Dict("s" => s), reactions = Dict("r1" => r))
139139

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

0 commit comments

Comments
 (0)