aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent
diff options
context:
space:
mode:
authorStefan Monnier2014-05-27 10:28:07 -0400
committerStefan Monnier2014-05-27 10:28:07 -0400
commitc435f506a1fd8fbf2bd22f59226ef296a3eb6ab3 (patch)
tree4394a9e9a5c5699206ad5828eb154feac19f71eb /test/indent
parentc24163d444ba9256b9efee8e7d8f1c65386b1e2a (diff)
downloademacs-c435f506a1fd8fbf2bd22f59226ef296a3eb6ab3.tar.gz
emacs-c435f506a1fd8fbf2bd22f59226ef296a3eb6ab3.zip
* test/indent/ps-mode.ps: New file.
* test/automated/core-elisp-tests.el (core-elisp-test-window-configurations): New test. * test/indent/octave.m: Add a few more tests. * test/indent/ruby.rb: Add one more test.
Diffstat (limited to 'test/indent')
-rw-r--r--test/indent/octave.m8
-rw-r--r--test/indent/ps-mode.ps14
-rw-r--r--test/indent/ruby.rb4
3 files changed, 26 insertions, 0 deletions
diff --git a/test/indent/octave.m b/test/indent/octave.m
index e5bae850589..8aab5ec03ed 100644
--- a/test/indent/octave.m
+++ b/test/indent/octave.m
@@ -14,7 +14,15 @@ function res = tcomp (fn)
14 y = 'hello'; 14 y = 'hello';
15 z = y'; 15 z = y';
16 16
17 ## Bug#14399.
18 vec = [...
19 one;...
20 two;...
21 three];
22
17 cnty = repmat(x(:,1)(:), 10, 1); 23 cnty = repmat(x(:,1)(:), 10, 1);
24 x = ...
25 12
18 26
19 pop = x(:,1:10)(:); 27 pop = x(:,1:10)(:);
20 ## Here and below, we test if the indentation aligns with a previous 28 ## Here and below, we test if the indentation aligns with a previous
diff --git a/test/indent/ps-mode.ps b/test/indent/ps-mode.ps
new file mode 100644
index 00000000000..4b4ee0f10cb
--- /dev/null
+++ b/test/indent/ps-mode.ps
@@ -0,0 +1,14 @@
1%!PS-2.0
2
3<< 23 45 >> %dictionary
4< 23 > %hex string
5<~a>a%a~> %base85 string
6(%)s
7(sf\(g>a)sdg)
8
9/foo {
10 <<
11 hello 2
12 3
13 >>
14} def
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 7e778798996..82cc63f9168 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -6,6 +6,10 @@ if something_wrong? # ruby-move-to-block-skips-heredoc
6 foo 6 foo
7end 7end
8 8
9def foo
10 %^bar^
11end
12
9# Percent literals. 13# Percent literals.
10b = %Q{This is a "string"} 14b = %Q{This is a "string"}
11c = %w!foo 15c = %w!foo