aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2010-10-27 10:48:05 -0400
committerStefan Monnier2010-10-27 10:48:05 -0400
commitd19dc73db6fc2b90ab6d058e2f4cb9c44a4aa4bc (patch)
treed6fda85ab7ccb152bba166d1598e412bd95f7cff /test
parent80cb310daba14e1847df5152dcee1933274e0c96 (diff)
downloademacs-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/ChangeLog8
-rw-r--r--test/indent/octave.m24
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 @@
12010-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * indent/octave.m: Add a test to ensure indentation is local.
4
12010-10-23 Glenn Morris <rgm@gnu.org> 52010-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
72010-09-20 Stefan Monnier <monnier@iro.umontreal.ca> 112010-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
30endfunction 36endfunction
31 37