Mercurial > repos > public > sbplib
comparison sparse2cellTest.m @ 187:770da87a6dc4 feature/grids
sparse2cell: Added missing semicolons.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 04 Mar 2016 17:18:20 +0100 |
parents | d90f540f4137 |
children |
comparison
equal
deleted
inserted
replaced
186:1fc2eeb4f4e6 | 187:770da87a6dc4 |
---|---|
24 in{1}{3} = [2 3]; | 24 in{1}{3} = [2 3]; |
25 | 25 |
26 out{1} = { | 26 out{1} = { |
27 [17 24], [1 8 15]; | 27 [17 24], [1 8 15]; |
28 [23 5; 4 6; 10 12; 11 18], [7 14 16; 13 20 22; 19 21 3; 25 2 9]; | 28 [23 5; 4 6; 10 12; 11 18], [7 14 16; 13 20 22; 19 21 3; 25 2 9]; |
29 } | 29 }; |
30 | 30 |
31 in{1}{1} = [17 24 1 8 15; 23 5 0 0 0; 4 6 0 0 0; 10 12 0 0 0; 11 18 0 0 0]; | 31 in{1}{1} = [17 24 1 8 15; 23 5 0 0 0; 4 6 0 0 0; 10 12 0 0 0; 11 18 0 0 0]; |
32 in{1}{2} = [1 4]; | 32 in{1}{2} = [1 4]; |
33 in{1}{3} = [2 3]; | 33 in{1}{3} = [2 3]; |
34 | 34 |
35 out{1} = { | 35 out{1} = { |
36 [17 24], [1 8 15]; | 36 [17 24], [1 8 15]; |
37 [23 5; 4 6; 10 12; 11 18], []; | 37 [23 5; 4 6; 10 12; 11 18], []; |
38 } | 38 }; |
39 | 39 |
40 for i = 1:length(in) | 40 for i = 1:length(in) |
41 testCase.verifyEqual(sparse2cell(in{i}{:}), out{i}); | 41 testCase.verifyEqual(sparse2cell(in{i}{:}), out{i}); |
42 end | 42 end |
43 end | 43 end |