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

cleanup tests

parent 3049ddbb
No related branches found
No related tags found
No related merge requests found
......@@ -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
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