aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog14
-rw-r--r--test/comint-testsuite.el3
-rw-r--r--test/indent/modula2.mod53
-rw-r--r--test/indent/octave.m24
4 files changed, 84 insertions, 10 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index feae114f862..3b1921c5987 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,17 @@
12010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * indent/modula2.mod: New file.
4
52010-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 * indent/octave.m: Add a test to ensure indentation is local.
8
92010-10-23 Glenn Morris <rgm@gnu.org>
10
11 * comint-testsuite.el
12 (comint-testsuite--test-comint-password-prompt-regexp):
13 Add "Please enter the password". (Bug#7224)
14
12010-09-20 Stefan Monnier <monnier@iro.umontreal.ca> 152010-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
2 16
3 * indent/prolog.prolog: Use normal spacing around !. 17 * indent/prolog.prolog: Use normal spacing around !.
diff --git a/test/comint-testsuite.el b/test/comint-testsuite.el
index 35b946cf3da..9a4e7eae3b7 100644
--- a/test/comint-testsuite.el
+++ b/test/comint-testsuite.el
@@ -34,7 +34,8 @@
34 (interactive) 34 (interactive)
35 (let ((password-strings 35 (let ((password-strings
36 '("foo@example.net's password: " ;ssh 36 '("foo@example.net's password: " ;ssh
37 "Password for foo@example.org: " ; knit 37 "Password for foo@example.org: " ; kinit
38 "Please enter the password for foo@example.org: " ; kinit
38 "Kerberos password for devnull/root <at> GNU.ORG: " ; ksu 39 "Kerberos password for devnull/root <at> GNU.ORG: " ; ksu
39 "Enter passphrase: " ; ssh-add 40 "Enter passphrase: " ; ssh-add
40 "Enter passphrase (empty for no passphrase): " ; ssh-keygen 41 "Enter passphrase (empty for no passphrase): " ; ssh-keygen
diff --git a/test/indent/modula2.mod b/test/indent/modula2.mod
new file mode 100644
index 00000000000..f8fbcb7f4e5
--- /dev/null
+++ b/test/indent/modula2.mod
@@ -0,0 +1,53 @@
1(* -*- mode: modula-2; m2-indent:3 -*- *)
2
3IMPLEMENTATION MODULE Indent ;
4
5(* This is (* a nested comment *) *)
6// This is a single-line comment.
7
8FROM SYSTEM IMPORT ADR, TSIZE, SIZE, WORD ;
9
10CONST
11 c1 = 2;
12
13TYPE
14 t = POINTER TO ARRAY [0..10] OF LONGINT;
15
16VAR x: t;
17 y:LONGINT;
18
19
20PROCEDURE f1 (f: File) : INTEGER ;
21 VAR
22 fd: FileDescriptor ;
23 PROCEDURE foo (a:CARDINAL) : INTEGER;
24 BEGIN
25 END foo;
26BEGIN
27 IF f#Error
28 THEN
29 fd := GetIndice(FileInfo, f) ;
30 IF fd#NIL THEN
31 RETURN( fd^.unixfd )
32 ELSE
33 CASE z OF
34 1: do1();
35 | 2: do2();
36 toto(x);
37 | 3: ;
38 | 4: do4();
39 ELSE do5();
40 END ; (* CASE selection *)
41
42 END
43 END ;
44 FormatError1('file %d has not been opened or is out of range\n', f) ;
45 RETURN( -1 )
46END f1 ;
47
48
49BEGIN
50 init
51FINALLY
52 done
53END Indent.
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