8 function testUniqueNotInBinaryMode(
self)
11 isOk=eq(objVec(1),objVec(3));
12 self.verifyTrue(isOk);
13 isOk=isEqual(objVec(1),objVec(3),'asBlob',true);
14 self.verifyTrue(~isOk);
15 isOk=isEqual(objVec(1),objVec(3),'asHandle',true);
16 self.verifyTrue(~isOk);
17 self.runAndCheckError(...
18 'isOk=isEqual(objVec(1),objVec(3),''asHandle'',true,''asBlob'',true);',...
19 'wrongInput:blobAndHandleIncompatible');
23 isOk=numel(unqVec)==3;
24 self.verifyTrue(isOk);
25 isOk=~any(isEqualElem(unqVec(1:end-1),unqVec(2:end),'asBlob',true));
26 self.verifyTrue(isOk);
27 isOk=all(isEqualElem(unqVec,sortVec,'asBlob',true));
28 self.verifyTrue(isOk);
29 isOk=isEqual(unqVec,sortVec,'asBlob',true);
30 self.verifyTrue(isOk);
32 function testEqAsHandle(self)
34 self.checkEqAsHandle(self,obj);
36 function testAtemptToSortNotInBinaryMode(self)
39 'wrongInput:signNotDefForAllElems');
41 function testUniqueIsmemberCallNumber(~)
42 import
mxberry.core.test.aux.EqualCallCounter;
45 for iCase=1:numel(nObjVec)
49 EqualCallCounter.checkCalls(objVec);
54 function checkEqAsHandle(self,obj)
56 check(false,'asHandle',true);
59 function check(isPosExpected,varargin)
62 chk(@(varargin)~ne(varargin{:}));
66 isEq=fOp(obj,obj2,varargin{:});
67 self.verifyEqual(isEq,isPosExpected);
function mergesort(in x)
Syntax: sx = mergesort(x);.
function unique(in inpVec)
UNIQUE for arrays of any type.