diff --git a/tests/test_expcodes.m b/tests/test_expcodes.m index 3050cde4dcd4f42f3a492b441d79682e80c8d366..610a0f2892fbac88341740deb2852396c76a4601 100644 --- a/tests/test_expcodes.m +++ b/tests/test_expcodes.m @@ -9,7 +9,7 @@ classdef test_expcodes < matlab.unittest.TestCase properties(ClassSetupParameter) expcode = {'1','1005','1006'}; % list of expcodes to test end - + methods(TestClassSetup) function setup_environment(testCase) testCase.addTeardown(@cd,pwd); @@ -56,20 +56,18 @@ classdef test_expcodes < matlab.unittest.TestCase testCase.expcode_obj.printinits end - function test_expcode_setup(testCase) - fprintf('\n=== Testing callinits for expcode %d: %s === \n',... - testCase.expcode_obj.maincode,... - testCase.expcode_obj.name); - + function test_expcode_setup(testCase) fprintf('\n=== Testing setup for expcode %d: %s === \n',... - testCase.expcode_obj.maincode,... - testCase.expcode_obj.name); - + testCase.expcode_obj.maincode,... + testCase.expcode_obj.name); testCase.expcode_obj.setup; % run setup this exp code end function test_callinits(testCase) - testCase.expcode_obj.callinits; + fprintf('\n=== Testing callinits for expcode %d: %s === \n',... + testCase.expcode_obj.maincode,... + testCase.expcode_obj.name); + testCase.expcode_obj.callinits; end function test_actualize(testCase)