1 ;;; core-elisp-tests.el --- Testing some core Elisp rules
3 ;; Copyright (C) 2013 Free Software Foundation, Inc.
5 ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
8 ;; This program is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation, either version 3 of the License, or
11 ;; (at your option) any later version.
13 ;; This program is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
27 (ert-deftest core-elisp-tests
()
28 "Test some core Elisp rules."
30 ;; Check that when defvar is run within a let-binding, the toplevel default
31 ;; is properly initialized.
32 (should (equal (list (let ((c-e-x 1)) (defvar c-e-x
2) c-e-x
) c-e-x
)
34 (should (equal (list (let ((c-e-x 1))
35 (defcustom c-e-x
2 "doc" :group
'blah
) c-e-x
)
39 (provide 'core-elisp-tests
)
40 ;;; core-elisp-tests.el ends here