Commit 77b605d4 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

simple tests

parent f53de819
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
......@@ -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")
@testset "CCall to SBML works and SBML returns a version" begin
@test typeof(SBMLVersion())==Pkg.VersionNumber
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