Mercurial > repos > public > sbplib
comparison CellTest.m @ 478:d91f27460741 feature/sublassable_cellarray
Implement size, length and transpose
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 02 Aug 2017 10:51:44 +0200 |
parents | 97c505c87f56 |
children | c5705458beb1 |
comparison
equal
deleted
inserted
replaced
477:97c505c87f56 | 478:d91f27460741 |
---|---|
35 testCase.verifyEqual(length(A),expected); | 35 testCase.verifyEqual(length(A),expected); |
36 end | 36 end |
37 end | 37 end |
38 | 38 |
39 function testTranspose(testCase) | 39 function testTranspose(testCase) |
40 testCase.verifyEqual(Cell({1, 2})', Cell({1; 2})); | 40 testCase.verifyEqual(Cell({1i, 2}).', Cell({1i; 2})); |
41 testCase.verifyEqual(Cell({1; 2})', Cell({1, 2})); | 41 testCase.verifyEqual(Cell({1i; 2}).', Cell({1i, 2})); |
42 end | |
43 | |
44 function testCtranspose(testCase) | |
45 testCase.verifyEqual(Cell({1i, 2})', Cell({1i; 2})); | |
46 testCase.verifyEqual(Cell({1i; 2})', Cell({1i, 2})); | |
42 end | 47 end |
43 | 48 |
44 function testRoundIndexWithProperty(testCase) | 49 function testRoundIndexWithProperty(testCase) |
45 A = Cell({3,2,1}); | 50 A = Cell({3,2,1}); |
46 | 51 |