diff options
author | Cameron Desautels <camdez@gmail.com> | 2013-12-05 15:25:54 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2013-12-05 15:25:54 -0500 |
commit | bf4906d7ca3833f11f929d0feae0feb622131604 (patch) | |
tree | 1f798df874380c96422754a65e06f59e1cc57d21 /test/automated/regexp-tests.el | |
parent | c619527c15d2c0c88d5e73f102588f6c3d44ab73 (diff) | |
download | emacs-bf4906d7ca3833f11f929d0feae0feb622131604.tar.gz emacs-bf4906d7ca3833f11f929d0feae0feb622131604.tar.bz2 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/automated/regexp-tests.el')
-rw-r--r-- | test/automated/regexp-tests.el | 31 |
1 files changed, 31 insertions, 0 deletions
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 @@ +;;; regexp-tests.el --- Test suite for regular expression handling. + +;; Copyright (C) 2013 Free Software Foundation, Inc. + +;; Author: Stefan Monnier <monnier@iro.umontreal.ca> +;; Keywords: internal +;; Human-Keywords: internal + +;; This file is part of GNU Emacs. + +;; GNU Emacs is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; GNU Emacs is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. + +;;; Code: + +(ert-deftest regexp-test-regexp-opt () + "Test the `compilation-error-regexp-alist' regexps. +The test data is in `compile-tests--test-regexps-data'." + (should (string-match (regexp-opt-charset '(?^)) "a^b"))) + +;;; regexp-tests.el ends here. |