0001
0002
0003 function tests = modelConversionTests
0004 tests = functiontests(localfunctions);
0005 end
0006
0007 function ravenCobraWrapperTest(testCase)
0008
0009
0010
0011
0012
0013 sourceDir=fileparts(fileparts(fileparts(which(mfilename))));
0014 load(fullfile(sourceDir,'testing','unit_tests','test_data','ecoli_textbook.mat'), 'model');
0015
0016
0017 evalc('modelCobra=ravenCobraWrapper(model);');
0018 evalc('modelRaven=ravenCobraWrapper(modelCobra);');
0019
0020
0021 modelNoAnnot=rmfield(model,'annotation');
0022
0023
0024 verifyEqual(testCase,modelRaven,modelNoAnnot)
0025 end