diff options
Diffstat (limited to 'test/indent')
| -rw-r--r-- | test/indent/octave.m | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/test/indent/octave.m b/test/indent/octave.m index dc6f8448152..768f3d85e01 100644 --- a/test/indent/octave.m +++ b/test/indent/octave.m | |||
| @@ -17,15 +17,21 @@ function res = tcomp (fn) | |||
| 17 | cnty = repmat(x(:,1)(:), 10, 1); | 17 | cnty = repmat(x(:,1)(:), 10, 1); |
| 18 | 18 | ||
| 19 | pop = x(:,1:10)(:); | 19 | pop = x(:,1:10)(:); |
| 20 | bir = x(:,11:20)(:); | 20 | ## Here and below, we test if the indentation aligns with a previous |
| 21 | dth = x(:,21:30)(:); | 21 | ## fixindented line. This is important so as to make it easier for the |
| 22 | imig = x(:,31:40)(:); | 22 | ## user to verride some indentation somewhere, and also because it |
| 23 | dmig = x(:,41:50)(:); | 23 | ## reflects the fact that the indentation decision is taken with a minimum |
| 24 | gq = x(:,51:60)(:); | 24 | ## amount of work (i.e. in the present case, without having to walk back |
| 25 | 25 | ## until the `function' line). | |
| 26 | yrs = repmat(2000:2009, 39, 1)(:); | 26 | bir = x(:,11:20)(:); # fixindent |
| 27 | 27 | dth = x(:,21:30)(:); | |
| 28 | res = [yrs, cnty, pop, bir, dth, imig, dmig, gq]; | 28 | imig = x(:,31:40)(:); |
| 29 | dmig = x(:,41:50)(:); | ||
| 30 | gq = x(:,51:60)(:); | ||
| 31 | |||
| 32 | yrs = repmat(2000:2009, 39, 1)(:); | ||
| 33 | |||
| 34 | res = [yrs, cnty, pop, bir, dth, imig, dmig, gq]; | ||
| 29 | 35 | ||
| 30 | endfunction | 36 | endfunction |
| 31 | 37 | ||