cantera/test/matlab/testImport.m
Ray Speth bac65b26a1 Added machinery for unit testing of the Matlab toolbox
Unit tests are written using the Matlab xUnit Test Framework
2012-03-13 17:32:10 +00:00

12 lines
293 B
Matlab

function test_suite = testImport
initTestSuite;
function testImportXML
gas = importPhase('gri30.xml', 'gri30_mix');
dkm = mixDiffCoeffs(gas);
assertEqual(length(dkm), nSpecies(gas))
function testImportCTI
gas = importPhase('h2o2.cti');
assertEqual(temperature(gas), 300)
delete('h2o2.xml');