Skip to content

Commit

Permalink
test defaults on coupling
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Jun 8, 2024
1 parent 8841e8e commit 2851b6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/defaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,31 @@
@test isnothing(A.metabolite_formula(m, ""))
@test isnothing(A.metabolite_charge(m, ""))
@test isnothing(A.metabolite_compartment(m, ""))
@test isempty(A.couplings(m))
@test A.a_couplings(m) == 0
@test_throws ErrorException A.coupling(m)
@test all(isempty, A.coupling_bounds(m))
@test_throws ErrorException A.coupling_weights(m, "")

@test isempty(A.reaction_annotations(m, ""))
@test isempty(A.metabolite_annotations(m, ""))
@test isempty(A.gene_annotations(m, ""))
@test isempty(A.coupling_annotations(m, ""))
@test isempty(A.reaction_notes(m, ""))
@test isempty(A.metabolite_notes(m, ""))
@test isempty(A.gene_notes(m, ""))
@test isempty(A.coupling_notes(m, ""))
@test isnothing(A.reaction_name(m, ""))
@test isnothing(A.metabolite_name(m, ""))
@test isnothing(A.gene_name(m, ""))
@test isnothing(A.coupling_name(m, ""))

@test_throws ErrorException A.load(NotAModel, ".")
@test_throws ErrorException A.save(m, ".")
@test_throws ErrorException A.filename_extensions(NotAModel)
@test_throws ErrorException show(stdout, MIME"text/plain"(), m)

A.n_reactions(::NotAModel) = 123

@test size(A.coupling(m) == (0, 123))
end

0 comments on commit 2851b6f

Please sign in to comment.