]> code.delx.au - gnu-emacs/blob - test/lisp/emacs-lisp/regexp-opt-tests.el
Merge from origin/emacs-25
[gnu-emacs] / test / lisp / emacs-lisp / regexp-opt-tests.el
1 ;;; regexp-tests.el --- Test suite for regular expression handling.
2
3 ;; Copyright (C) 2013-2016 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 (require 'regexp-opt)
27
28 (ert-deftest regexp-test-regexp-opt ()
29 "Test the `compilation-error-regexp-alist' regexps.
30 The test data is in `compile-tests--test-regexps-data'."
31 (should (string-match (regexp-opt-charset '(?^)) "a^b")))
32
33 ;;; regexp-tests.el ends here.