1 classdef SuiteSecBasic < matlab.unittest.TestCase
3 function self = SuiteSecBasic(varargin)
4 self =
self@matlab.unittest.TestCase(varargin{:});
9 function testMapAutoKey(
self)
11 'directPrefix','EE','autoPrefix','ZZZ');
20 self.verifyTrue(isequal(keyList,...
21 {
'EEa',
'EEb',
'EEcc',
'ZZZ1',
'ZZZ2'}));
22 self.verifyTrue(isequal(valueList,{2,3,4,333,33}));
23 self.verifyTrue(isequal(333,c.get(
'ZZZ1')));
24 self.verifyTrue(isequal(3,c.get(
'EEb')));
25 c.remove({
'EEb',
'ZZZ1'});
29 self.verifyTrue(isequal(keyList,...
30 {
'EEa',
'EEcc',
'ZZZ2'}));
31 self.verifyTrue(isequal(valueList,{2,4,33}));