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.
18 lines
479 B
Matlab
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
|