aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorCameron Desautels2013-12-05 15:25:54 -0500
committerStefan Monnier2013-12-05 15:25:54 -0500
commitbf4906d7ca3833f11f929d0feae0feb622131604 (patch)
tree1f798df874380c96422754a65e06f59e1cc57d21 /test
parentc619527c15d2c0c88d5e73f102588f6c3d44ab73 (diff)
downloademacs-bf4906d7ca3833f11f929d0feae0feb622131604.tar.gz
emacs-bf4906d7ca3833f11f929d0feae0feb622131604.zip
* lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Fix ^.
* test/automated/regexp-tests.el: New file. Fixes: debbugs:16046
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog17
-rw-r--r--test/automated/regexp-tests.el31
2 files changed, 40 insertions, 8 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index e16e0b21281..e7317f79ac8 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,13 +1,16 @@
12013-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * automated/regexp-tests.el: New file.
4
12013-11-29 Eli Zaretskii <eliz@gnu.org> 52013-11-29 Eli Zaretskii <eliz@gnu.org>
2 6
3 * automated/reftex-tests.el (reftex-parse-from-file-test): Run 7 * automated/reftex-tests.el (reftex-parse-from-file-test):
4 temp-dir through file-truename, to make sure the temporary file 8 Run temp-dir through file-truename, to make sure the temporary file
5 names are comparable as strings. 9 names are comparable as strings.
6 10
7 * automated/decoder-tests.el (ert-test-decoder-prefer-utf-8): 11 * automated/decoder-tests.el (ert-test-decoder-prefer-utf-8):
8 Force Unix EOLs by using 'utf-8-unix', since the default of 12 Force Unix EOLs by using 'utf-8-unix', since the default of
9 'utf-8' is system-dependent, while the test expects to see Unix 13 'utf-8' is system-dependent, while the test expects to see Unix EOLs.
10 EOLs.
11 14
122013-11-28 Glenn Morris <rgm@gnu.org> 152013-11-28 Glenn Morris <rgm@gnu.org>
13 16
@@ -15,8 +18,7 @@
15 18
162013-11-28 Eli Zaretskii <eliz@gnu.org> 192013-11-28 Eli Zaretskii <eliz@gnu.org>
17 20
18 * automated/Makefile.in (PATH_SEP): Set this instead of 21 * automated/Makefile.in (PATH_SEP): Set this instead of PATH_SEPARATOR.
19 PATH_SEPARATOR.
20 (EMACSOPT): Use $(PATH_SEP). 22 (EMACSOPT): Use $(PATH_SEP).
21 23
222013-11-28 Michael Albinus <michael.albinus@gmx.de> 242013-11-28 Michael Albinus <michael.albinus@gmx.de>
@@ -115,8 +117,7 @@
115 (tramp-test22-file-times, tramp-test23-visited-file-modtime) 117 (tramp-test22-file-times, tramp-test23-visited-file-modtime)
116 (tramp-test24-file-name-completion, tramp-test25-load) 118 (tramp-test24-file-name-completion, tramp-test25-load)
117 (tramp-test26-process-file, tramp-test27-start-file-process): 119 (tramp-test26-process-file, tramp-test27-start-file-process):
118 (tramp-test28-shell-command): Protect unwindforms with 120 (tramp-test28-shell-command): Protect unwindforms with `ignore-errors'.
119 `ignore-errors'.
120 (tramp-test29-utf8): New test. 121 (tramp-test29-utf8): New test.
121 122
1222013-11-13 Michael Albinus <michael.albinus@gmx.de> 1232013-11-13 Michael Albinus <michael.albinus@gmx.de>
diff --git a/test/automated/regexp-tests.el b/test/automated/regexp-tests.el
new file mode 100644
index 00000000000..5c4a3b48a63
--- /dev/null
+++ b/test/automated/regexp-tests.el
@@ -0,0 +1,31 @@
1;;; regexp-tests.el --- Test suite for regular expression handling.
2
3;; Copyright (C) 2013 Free Software Foundation, Inc.
4
5;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
6;; Keywords: internal
7;; Human-Keywords: internal
8
9;; This file is part of GNU Emacs.
10
11;; GNU Emacs is free software: you can redistribute it and/or modify
12;; it under the terms of the GNU General Public License as published by
13;; the Free Software Foundation, either version 3 of the License, or
14;; (at your option) any later version.
15
16;; GNU Emacs is distributed in the hope that it will be useful,
17;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;; GNU General Public License for more details.
20
21;; You should have received a copy of the GNU General Public License
22;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23
24;;; Code:
25
26(ert-deftest regexp-test-regexp-opt ()
27 "Test the `compilation-error-regexp-alist' regexps.
28The test data is in `compile-tests--test-regexps-data'."
29 (should (string-match (regexp-opt-charset '(?^)) "a^b")))
30
31;;; regexp-tests.el ends here.