From b5b542d10b837220aaa59a0013b7d3aed922d1dd Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 2 Aug 2018 18:17:22 -0400 Subject: [PATCH] [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. --- test/matlab/TestImport.m | 18 ++++++++++++++++++ test/matlab/testImport.m | 13 ------------- 2 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 test/matlab/TestImport.m delete mode 100644 test/matlab/testImport.m diff --git a/test/matlab/TestImport.m b/test/matlab/TestImport.m new file mode 100644 index 000000000..3a42f0c5c --- /dev/null +++ b/test/matlab/TestImport.m @@ -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 diff --git a/test/matlab/testImport.m b/test/matlab/testImport.m deleted file mode 100644 index e02939d0e..000000000 --- a/test/matlab/testImport.m +++ /dev/null @@ -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()