Skip to content
Snippets Groups Projects
Commit 3487a240 authored by Federico Felici's avatar Federico Felici
Browse files

SCDalgo test superclass and use it for SCDalgo_doublet_test

parent 7b4c2d9f
No related branches found
No related tags found
No related merge requests found
classdef SCDalgo_test < matlab.unittest.TestCase
properties (Abstract=true)
algoobj % SCD algo obj name - abstract allows modification by sub-class
end
methods (TestClassSetup)
function setup_conf(testCase)
testCase.assertWarningFree(@() SCDconf_setSIMconf);
end
function setup_algo(testCase)
testCase.assertInstanceOf(testCase.algoobj,'SCDclass_algo');
end
end
methods (Test)
function test_callinits(testCase)
testCase.algoobj.callinits; % calls inits defining fixed parameters etc
end
function test_setup(testCase)
testCase.algoobj.setup; % calls possible tunable parameters
end
function test_compile(testCase)
testCase.algoobj.compile;
end
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment