diff options
| author | Stefan Monnier | 2010-10-27 10:48:05 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-10-27 10:48:05 -0400 |
| commit | d19dc73db6fc2b90ab6d058e2f4cb9c44a4aa4bc (patch) | |
| tree | d6fda85ab7ccb152bba166d1598e412bd95f7cff /test/indent | |
| parent | 80cb310daba14e1847df5152dcee1933274e0c96 (diff) | |
| download | emacs-d19dc73db6fc2b90ab6d058e2f4cb9c44a4aa4bc.tar.gz emacs-d19dc73db6fc2b90ab6d058e2f4cb9c44a4aa4bc.zip | |
* test/indent/octave.m: Add a test to ensure indentation is local.
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 | ||