cantera/test/matlab/TestImport.m
Ray Speth b5b542d10b [Test/Matlab] Run TestImport on all platforms
This portion of the Matlab test suite was being skipped on some platforms and/or
Matlab versions. Switching to the 'classdef' style of tests fixes the problem.
2018-08-02 18:17:22 -04:00

18 lines
479 B
Matlab

classdef TestImport < TestCase
methods
function self = TestImport(name)
self = self@TestCase(name);
end
function testImportXML(self)
gas = Solution('gri30.xml', 'gri30_mix');
dkm = mixDiffCoeffs(gas);
assertEqual(length(dkm), nSpecies(gas))
end
function testImportCTI(self)
gas = Solution('h2o2.cti');
assertEqual(temperature(gas), 300)
end
end
end