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
a99e4767
Commit
a99e4767
authored
Feb 26, 2021
by
Miroslav Kratochvil
🚴
Browse files
test if getS produces the expected matrix type
parent
32131657
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/loadEColi.jl
View file @
a99e4767
...
...
@@ -21,6 +21,10 @@ end
mets
,
rxns
,
S
=
getS
(
mdl
)
@test
typeof
(
S
)
<:
AbstractMatrix
{
Float64
}
@test
typeof
(
getS
(
mdl
;
zeros
=
spzeros
)[
3
])
<:
SparseMatrixCSC
{
Float64
}
@test
typeof
(
getS
(
mdl
;
zeros
=
zeros
)[
3
])
==
Matrix
{
Float64
}
@test
length
(
mets
)
==
77
@test
length
(
rxns
)
==
77
@test
size
(
S
)
==
(
length
(
mets
),
length
(
rxns
))
...
...
test/runtests.jl
View file @
a99e4767
using
Test
,
SHA
using
Test
,
SHA
,
SparseArrays
using
SBML
import
Pkg
...
...
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