Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
SBML.jl
Commits
a9007924
Commit
a9007924
authored
Jul 15, 2021
by
Mosè Giordano
Browse files
Rename `SBMLVersion` -> `Version` and unexport it
parent
8fc3bcb5
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/SBML.jl
View file @
a9007924
...
...
@@ -18,7 +18,7 @@ include("utils.jl")
sbml
(
sym
::
Symbol
)
=
dlsym
(
SBML_jll
.
libsbml_handle
,
sym
)
export
SBMLVersion
,
readSBML
,
getS
,
getLBs
,
getUBs
,
getOCs
export
readSBML
,
getS
,
getLBs
,
getUBs
,
getOCs
export
set_level_and_version
,
libsbml_convert
,
convert_simplify_math
end
# module
src/version.jl
View file @
a9007924
"""
function SBMLVersion()
function SBML
.
Version()
Get the version of the used SBML library in Julia version format.
"""
function
SBML
Version
()
::
VersionNumber
function
Version
()
::
VersionNumber
VersionNumber
(
unsafe_string
(
ccall
(
sbml
(
:
getLibSBMLDottedVersion
),
Cstring
,
())))
end
test/version.jl
View file @
a9007924
@testset
"CCall to SBML works and SBML returns a version"
begin
@test
SBMLVersion
()
isa
VersionNumber
@test
SBML
.
Version
()
isa
VersionNumber
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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