aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent
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/indent
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/indent')
-rw-r--r--test/indent/octave.m24
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
30endfunction 36endfunction
31 37