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
504ecec2
"tests/SCDalgo_test.m" did not exist on "c71bea5f46485ad5f7692a0c315a3830de2f30f4"
Commit
504ecec2
authored
3 years ago
by
Ngoc Minh Trang Vu
Committed by
Federico Felici
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update test SCDsignal with new restriction
parent
ab1186d1
No related branches found
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
+4
-4
4 additions, 4 deletions
code/classes/SCDsignal/SCDsignal_test.m
with
4 additions
and
4 deletions
code/classes/SCDsignal/SCDsignal_test.m
+
4
−
4
View file @
504ecec2
classdef
SCDsignal_test
<
matlab
.
unittest
.
TestCase
properties
(
MethodSetupParameter
)
type
=
{
'
s
in
gle'
,
'double'
,
'logical'
,
'doub
le'
};
type
=
{
'in
t8'
,
'single'
,
'int32'
,
'sing
le'
};
m
=
{
1
,
100
,
3
,
3
};
n
=
{
1
,
1
,
3
,
10
};
end
...
...
@@ -134,10 +134,10 @@ classdef SCDsignal_test < matlab.unittest.TestCase
end
function
test_struct_to_bus
(
testCase
)
% Test creation of complex bus from structure which may contain
%
%
Test creation of complex bus from structure which may contain
% SCDsignals at leaves
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
))});
S_sub
=
struct
(
'sig1'
,{
testCase
.
sig
},
'sig2'
,
single
(
rand
(
5
,
5
))
)
;
S
=
struct
(
'a'
,
single
(
1
),
'b'
,
single
(
ones
(
3
,
1
)
)
,
'c'
,
true
(
4
,
2
),
'sub'
,
S_sub
,
'sig'
,{
SCDsignal
(
single
(
ones
(
4
,
1
))
)
});
testCase
.
verifyWarningFree
(
@
()
SCDsignal_struct_to_bus
(
S
,
'myTestBus'
,
'Bus with several data types for testing'
));
end
end
...
...
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