Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
b611ed82
Commit
b611ed82
authored
Jul 01, 2021
by
Miroslav Kratochvil
Browse files
add a test
parent
975c5cde
Changes
1
Show whitespace changes
Inline
Side-by-side
test/loadmodels.jl
View file @
b611ed82
...
@@ -48,6 +48,14 @@ sbmlfiles = [
...
@@ -48,6 +48,14 @@ sbmlfiles = [
104
,
104
,
52
,
52
,
),
),
# this contains l3v1-incompatible contents
(
joinpath
(
@__DIR__
,
"data"
,
"sbml01289.xml"
),
"https://raw.githubusercontent.com/sbmlteam/sbml-test-suite/master/cases/semantic/01289/01289-sbml-l3v2.xml"
,
"35ffa072052970b92fa358ee0f5750394ad74958e889cb85c98ed238642de4d0"
,
0
,
0
,
),
]
]
@testset
"Loading of models from various sources"
begin
@testset
"Loading of models from various sources"
begin
...
@@ -125,3 +133,13 @@ end
...
@@ -125,3 +133,13 @@ end
@variables
S29
S29b
@variables
S29
S29b
@test
isequal
(
convert
(
Num
,
m
.
reactions
[
"J29"
]
.
kinetic_math
),
2.0
*
S29
*
S29b
)
@test
isequal
(
convert
(
Num
,
m
.
reactions
[
"J29"
]
.
kinetic_math
),
2.0
*
S29
*
S29b
)
end
end
@testset
"converters fail gracefully"
begin
@test_throws
ErrorException
readSBML
(
joinpath
(
@__DIR__
,
"data"
,
"sbml01289.xml"
),
doc
->
begin
set_level_and_version
(
3
,
1
)(
doc
)
convert_simplify_math
(
doc
)
end
,
)
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment