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
c3a5b958
Commit
c3a5b958
authored
3 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
cleanup tests
parent
3049ddbb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/classes/SCDsignal/SCDsignal_test.m
+2
-2
2 additions, 2 deletions
code/classes/SCDsignal/SCDsignal_test.m
with
2 additions
and
2 deletions
code/classes/SCDsignal/SCDsignal_test.m
+
2
−
2
View file @
c3a5b958
...
...
@@ -136,9 +136,9 @@ classdef SCDsignal_test < matlab.unittest.TestCase
function
test_struct_to_bus
(
testCase
)
% Test creation of complex bus from structure which may contain
% SCDsignals at leaves
S_sub
=
struct
(
'sig1'
,{
SCDsignal
(
ones
(
3
,
1
))
},
'sig2'
,
rand
(
5
,
5
));
S_sub
=
struct
(
'sig1'
,{
testCase
.
sig
},
'sig2'
,
rand
(
5
,
5
));
S
=
struct
(
'a'
,
1
,
'b'
,
ones
(
3
,
1
),
'c'
,
true
(
4
,
2
),
'sub'
,
S_sub
,
'sig'
,{
SCDsignal
(
ones
(
4
,
1
))});
[
BusObj
,
BusNames
]
=
SCDsignal_struct_to_bus
(
S
,
'myTestBus'
,
'Bus with several data types for testing'
);
testCase
.
verifyWarningFree
(
@
()
SCDsignal_struct_to_bus
(
S
,
'myTestBus'
,
'Bus with several data types for testing'
)
)
;
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