comparison CellTest.m @ 479:c5705458beb1 feature/sublassable_cellarray

Implement end function and fix test for colon indexing
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 02 Aug 2017 11:19:10 +0200
parents d91f27460741
children 970f1df2bfcf
comparison
equal deleted inserted replaced
478:d91f27460741 479:c5705458beb1
102 102
103 function testColonIndexing(testCase) 103 function testColonIndexing(testCase)
104 C = Cell({1, 2, 3}); 104 C = Cell({1, 2, 3});
105 D = Cell({1; 2; 3}); 105 D = Cell({1; 2; 3});
106 106
107 testCase.verifyEqual(C(:), Cell({3})); 107 testCase.verifyEqual(C(:), D);
108 108 testCase.verifyEqual(D(:), D);
109
110 testCase.verifyEqual(C(:), Cell({3}));
111 testCase.verifyEqual(C{end}, 3);
112 end 109 end
113 110
114 function testIndexreferenceCurly(testCase) 111 function testIndexreferenceCurly(testCase)
115 cases = { 112 cases = {
116 % { 113 % {