From 504ecec224f13c39228f6a296e61728ef9ff4e39 Mon Sep 17 00:00:00 2001 From: trang vu <trang.vu@epfl.ch> Date: Fri, 19 Nov 2021 17:07:15 +0100 Subject: [PATCH] update test SCDsignal with new restriction --- code/classes/SCDsignal/SCDsignal_test.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/classes/SCDsignal/SCDsignal_test.m b/code/classes/SCDsignal/SCDsignal_test.m index 26ecbe6..a47f271 100644 --- a/code/classes/SCDsignal/SCDsignal_test.m +++ b/code/classes/SCDsignal/SCDsignal_test.m @@ -1,7 +1,7 @@ classdef SCDsignal_test < matlab.unittest.TestCase properties (MethodSetupParameter) - type = {'single','double','logical','double'}; + type = {'int8','single','int32','single'}; 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 -- GitLab