diff options
| author | Stefan Monnier | 2011-01-13 15:53:06 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-01-13 15:53:06 -0500 |
| commit | db5d03ea568aa674569d7792a04c95e0ebffac68 (patch) | |
| tree | c1ffd3d3c3df36a097f1a2e706135cee08c5b678 | |
| parent | dbed16aa0611f9c78365f06a96368874799d6f85 (diff) | |
| download | emacs-db5d03ea568aa674569d7792a04c95e0ebffac68.tar.gz emacs-db5d03ea568aa674569d7792a04c95e0ebffac68.zip | |
* test/indent/prolog.prolog: Add tokenizing tests.
| -rw-r--r-- | test/ChangeLog | 6 | ||||
| -rw-r--r-- | test/indent/prolog.prolog | 17 |
2 files changed, 17 insertions, 6 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 695a51b7f4f..3908a734136 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-01-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * indent/prolog.prolog: Add tokenizing tests. | ||
| 4 | |||
| 1 | 2011-01-13 Christian Ohler <ohler@gnu.org> | 5 | 2011-01-13 Christian Ohler <ohler@gnu.org> |
| 2 | 6 | ||
| 3 | * automated: New directory for automated tests. | 7 | * automated: New directory for automated tests. |
| @@ -229,7 +233,7 @@ | |||
| 229 | ;; add-log-time-zone-rule: t | 233 | ;; add-log-time-zone-rule: t |
| 230 | ;; End: | 234 | ;; End: |
| 231 | 235 | ||
| 232 | Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. | 236 | Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. |
| 233 | 237 | ||
| 234 | This file is part of GNU Emacs. | 238 | This file is part of GNU Emacs. |
| 235 | 239 | ||
diff --git a/test/indent/prolog.prolog b/test/indent/prolog.prolog index 8b96cd56a33..6cb5535fe8d 100644 --- a/test/indent/prolog.prolog +++ b/test/indent/prolog.prolog | |||
| @@ -1,11 +1,18 @@ | |||
| 1 | %% -*- mode: prolog; coding: utf-8 -*- | 1 | %% -*- mode: prolog; coding: utf-8; fill-column: 78 -*- |
| 2 | |||
| 3 | %% Testing correct tokenizing. | ||
| 4 | foo(X) :- 0'= = X. | ||
| 5 | foo(X) :- 8'234 = X. | ||
| 6 | foo(X) :- '\x45\' = X. | ||
| 7 | foo(X) :- 'test 0'=X. | ||
| 8 | foo(X) :- 'test 8'=X. | ||
| 2 | 9 | ||
| 3 | %% wf(+E) | 10 | %% wf(+E) |
| 4 | %% Vérifie que E est une expression syntaxiquement correcte. | 11 | %% Vérifie que E est une expression syntaxiquement correcte. |
| 5 | wf(X) :- atom(X); integer(X); var(X). %Une variable ou un entier. | 12 | wf(X) :- atom(X); integer(X); var(X). %Une variable ou un entier. |
| 6 | wf(lambda(X, T, B)) :- atom(X), wf(T), wf(B). %Une fonction. | 13 | wf(lambda(X, T, B)) :- atom(X), wf(T), wf(B). %Une fonction. |
| 7 | wf(app(E1, E2)) :- wf(E1), wf(E2). %Un appel de fonction. | 14 | wf(app(E1, E2)) :- wf(E1), wf(E2). %Un appel de fonction. |
| 8 | wf(pi(X, T, B)) :- atom(X), wf(T), wf(B). %Le type d'une fonction. | 15 | wf(pi(X, T, B)) :- atom(X), wf(T), wf(B). %Le type d'une fonction. |
| 9 | 16 | ||
| 10 | %% Éléments additionnels utilisés dans le langage source. | 17 | %% Éléments additionnels utilisés dans le langage source. |
| 11 | wf(lambda(X, B)) :- atom(X), wf(B). | 18 | wf(lambda(X, B)) :- atom(X), wf(B). |