Home > functions > internal > unit-test > dsUnitTest_checkModel.m

dsUnitTest_checkModel

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 classdef dsUnitTest_checkModel < matlab.unittest.TestCase
0002   properties
0003     unitTestDataPath = dsGetConfig('ds_unitTestData_path');
0004   end
0005   
0006   methods (Test,  TestTags = {'core'})
0007     function testCellIn(testCase)
0008       argin = {{'s=10; r=27; b=2.666';'dx/dt=s*(y-x)';'dy/dt=r*x-y-x*z';'dz/dt=-b*z+x*y'}};
0009       expectedOut = load(fullfile(testCase.unitTestDataPath,'checkModel_testCellIn'));
0010       expectedOut = expectedOut.model;
0011       
0012       testCase.verifyEqual(expectedOut, dsCheckModel(argin{:}) );
0013     end
0014   end
0015   
0016 end

Generated on Tue 12-Dec-2017 11:32:10 by m2html © 2005