Commit 3f449ebc authored by Adam Cooman's avatar Adam Cooman

fixed multiport test

parent 10b9d4d4
......@@ -86,14 +86,14 @@ classdef testMultiPort < matlab.unittest.TestCase
T = TwoPort(data);
end
% write the multiport to a file
MultiPort.write(T,'Name',fullfile(cd,'temp'),'Type',ReadWriteType,'version',2)
write(T,'Name',fullfile(cd,'temp'),'Type',ReadWriteType,'version',2)
% read the generated file back into a second object
T2 = MultiPort.read('temp');
% delete the generated file
delete('temp*')
% compare the data and the frequency axes in both objecs
testCase.verifyEqual(double(T.Data),double(T2.Data),'reltol',1e-6);
testCase.verifyEqual(double(T.Freq),double(T2.Freq),'reltol',1e-6);
testCase.verifyEqual(double(T.Data),double(T2.Data),'Abstol',1e-3);
testCase.verifyEqual(double(T.Freq),double(T2.Freq),'Abstol',1e-3);
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment