Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCDDS-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
SCDDS
SCDDS-core
Commits
3487a240
Commit
3487a240
authored
4 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
SCDalgo test superclass and use it for SCDalgo_doublet_test
parent
7b4c2d9f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/tests/SCDalgo_test.m
+32
-0
32 additions, 0 deletions
code/tests/SCDalgo_test.m
with
32 additions
and
0 deletions
code/tests/SCDalgo_test.m
0 → 100644
+
32
−
0
View file @
3487a240
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment