comparison CellTest.m @ 481:970f1df2bfcf feature/sublassable_cellarray

Implement handeling of stacked indexing
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 02 Aug 2017 12:17:09 +0200
parents c5705458beb1
children da7df0c9af05
comparison
equal deleted inserted replaced
480:4ce12f8b561c 481:970f1df2bfcf
47 end 47 end
48 48
49 function testRoundIndexWithProperty(testCase) 49 function testRoundIndexWithProperty(testCase)
50 A = Cell({3,2,1}); 50 A = Cell({3,2,1});
51 51
52 testCase.verifyEqual(A([1,3]).data, {3, 1}); 52 result = A([1,3]).data;
53 testCase.verifyEqual(result, {3, 1});
53 end 54 end
54 55
55 function testSubAssignment(testCase) 56 function testSubAssignment(testCase)
56 testCase.verifyFail(); 57 testCase.verifyFail();
57 end 58 end