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
77b605d4
Commit
77b605d4
authored
Feb 05, 2021
by
Miroslav Kratochvil
Browse files
simple tests
parent
f53de819
Changes
3
Hide whitespace changes
Inline
Side-by-side
test/loadEColi.jl
0 → 100644
View file @
77b605d4
sbmlfile
=
"EColi.xml"
if
!
isfile
(
sbmlfile
)
download
(
"https://systemsbiology.ucsd.edu/sites/systemsbiology.ucsd.edu/files/Attachments/Images/InSilicoOrganisms/Ecoli/Ecoli_SBML/Ec_core_flux1.xml"
,
sbmlfile
)
end
@testset
"SBML model loading"
begin
m
=
readSBML
(
sbmlfile
)
@test
typeof
(
mdl
)
==
Model
@test_throws
:
IOError
readSBML
(
sbmlfile
*
".does.not.really.exist"
)
@test
length
(
mdl
.
compartments
)
==
2
mets
,
rxns
,
S
=
getS
(
mdl
)
end
test/runtests.jl
View file @
77b605d4
...
...
@@ -3,6 +3,5 @@ using Test
using
SBML
import
Pkg
@testset
"CCall to SBML works and SBML returns a version"
begin
@test
typeof
(
SBMLVersion
())
==
Pkg
.
VersionNumber
end
include
(
"version.jl"
)
include
(
"loadEColi.jl"
)
test/version.jl
0 → 100644
View file @
77b605d4
@testset
"CCall to SBML works and SBML returns a version"
begin
@test
typeof
(
SBMLVersion
())
==
Pkg
.
VersionNumber
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