Commit a99e4767 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

test if getS produces the expected matrix type

parent 32131657
......@@ -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))
......
using Test, SHA
using Test, SHA, SparseArrays
using SBML
import Pkg
......
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