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 | |
| 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')
| -rw-r--r-- | test/ChangeLog | 8 | ||||
| -rw-r--r-- | test/indent/octave.m | 24 |
2 files changed, 21 insertions, 11 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 3808012c298..5a5c202ad3c 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,8 +1,12 @@ | |||
| 1 | 2010-10-27 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * indent/octave.m: Add a test to ensure indentation is local. | ||
| 4 | |||
| 1 | 2010-10-23 Glenn Morris <rgm@gnu.org> | 5 | 2010-10-23 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * comint-testsuite.el | 7 | * comint-testsuite.el |
| 4 | (comint-testsuite--test-comint-password-prompt-regexp): Add | 8 | (comint-testsuite--test-comint-password-prompt-regexp): |
| 5 | "Please enter the password". (Bug#7224) | 9 | Add "Please enter the password". (Bug#7224) |
| 6 | 10 | ||
| 7 | 2010-09-20 Stefan Monnier <monnier@iro.umontreal.ca> | 11 | 2010-09-20 Stefan Monnier <monnier@iro.umontreal.ca> |
| 8 | 12 | ||
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 | ||