From 858a2b5e4a6470616edcd66fe6d7e6749e9add11 Mon Sep 17 00:00:00 2001 From: paulflang Date: Tue, 10 Dec 2024 21:35:20 +0100 Subject: [PATCH] test handling of ifelse in get_massaction --- test/reactions.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/reactions.jl b/test/reactions.jl index 0d30fbc..2223b05 100644 --- a/test/reactions.jl +++ b/test/reactions.jl @@ -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])