Commit 74e64ee7 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

add test for initial cs/amounts

parent 6b710965
......@@ -68,3 +68,12 @@ end
m = readSBML(joinpath(@__DIR__, "data", "sbml00852.xml"))
@test all(contains_time.(r.kinetic_math for (_, r) in m.reactions))
end
@testset "Initial amounts and concentrations" begin
m = readSBML(joinpath(@__DIR__, "data", "sbml00852.xml"))
@test all(isnothing.(SBML.initial_concentrations(m)))
@test length(SBML.initial_amounts(m)) == 4
@test sum(SBML.initial_amounts(m)) == 0.001
@test sum(SBML.initial_concentrations(m, convert_amounts = true)) == 0.001
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment