Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
0234865e
Commit
0234865e
authored
Aug 05, 2020
by
Mathieu Hemery
Browse files
Add the tests
parent
d55c0105
Changes
1
Hide whitespace changes
Inline
Side-by-side
model_correction.plt
0 → 100644
View file @
0234865e
:- use_module(library(plunit)).
:- begin_tests(correction, [setup((clear_model, reset_options))]).
test('detect_catalysts', []) :-
correction:detect_modifiers([a,b,c,d], a/(1+d), [a], _Dummy1),
correction:detect_modifiers([a,b,c,d], a*exp(b)/(1+b+d^2), [a,b], _Dummy2).
test('detect_inhibitor', []) :-
correction:detect_modifiers([a,b,c,d], a/(1+d), _Dummy1, [d]),
correction:detect_modifiers([a,b,c,d], a/(1+b+d^2), _Dummy2, [b,d]).
test('add_catalysts', []) :-
correction:add_catalysts([a], b+a=>a+c, b+a=>a+c),
correction:add_catalysts([a,d], b+a=>a+c, b+a+d=>a+c+d),
correction:add_catalysts([a], b=>c, b+a=>c+a).
test('add_inhibitors', []) :-
correction:add_inhibitors([a], b/a=>c, b/a=>c),
correction:add_inhibitors([a,d], b/a=>c, b/(d,a)=>c),
correction:add_inhibitors([a], b=>c, b/a=>c).
test('remove_molecule', []) :-
correction:remove_molecule(2*a+b, a, a+b),
correction:remove_molecule(1*a+b+c, a, b+c),
correction:remove_molecule(a+b, a, b).
:- end_tests(correction).
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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