[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.
This commit is contained in:
parent
4911539b56
commit
b5b542d10b
2 changed files with 18 additions and 13 deletions
18
test/matlab/TestImport.m
Normal file
18
test/matlab/TestImport.m
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
function test_suite = testImport
|
||||
initTestSuite;
|
||||
|
||||
function testImportXML
|
||||
gas = Solution('gri30.xml', 'gri30_mix');
|
||||
dkm = mixDiffCoeffs(gas);
|
||||
assertEqual(length(dkm), nSpecies(gas))
|
||||
|
||||
function testImportCTI
|
||||
gas = Solution('h2o2.cti');
|
||||
assertEqual(temperature(gas), 300)
|
||||
|
||||
cleanup()
|
||||
Loading…
Add table
Reference in a new issue