0001
0002
0003 function tests = miriamTests
0004 tests = functiontests(localfunctions);
0005 end
0006
0007 function editMiriam_and_extractMiriamTest(testCase)
0008
0009
0010
0011
0012 sourceDir = fileparts(which(mfilename));
0013 load([sourceDir,'/test_data/ecoli_textbook.mat'], 'model');
0014
0015
0016 modelTest=editMiriam(model,'met',1,'bigg.metabolite','test','add');
0017 testOut{1}=modelTest.metMiriams;
0018 modelTest=editMiriam(model,'met',1,'bigg.metabolite','test','replace');
0019 testOut{end+1}=modelTest.metMiriams;
0020 modelTest=editMiriam(model,'met',1,'bigg.metabolite','test','fill');
0021 testOut{end+1}=modelTest.metMiriams;
0022 modelTest=editMiriam(model,'met','all','bigg.metabolite','test','add');
0023 testOut{end+1}=modelTest.metMiriams;
0024 modelTest=editMiriam(model,'met',true(1,numel(model.mets)),'bigg.metabolite','test','add');
0025 testOut{end+1}=modelTest.metMiriams;
0026 modelTest=editMiriam(model,'met','3pg_c','bigg.metabolite','test','add');
0027 testOut{end+1}=modelTest.metMiriams;
0028 modelTest=editMiriam(model,'met','3pg_c','bigg.metabolite','3pg','add');
0029 testOut{end+1}=modelTest.metMiriams;
0030
0031
0032 load([sourceDir,'/test_data/miriamTestOutput.mat'])
0033
0034
0035 verifyEqual(testCase,testOut,testOutOriginal)
0036 end