]> code.delx.au - gnu-emacs-elpa/blob - packages/test-simple/test/test-basic.el
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / test-simple / test / test-basic.el
1 ;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
2 ;; Copyright (C) 2015 Free Software Foundation, Inc
3 ;; Author: Rocky Bernstein <rocky@gnu.org>
4 ;; This program is free software: you can redistribute it and/or
5 ;; modify it under the terms of the GNU General Public License as
6 ;; published by the Free Software Foundation, either version 3 of the
7 ;; License, or (at your option) any later version.
8
9 ;; This program is distributed in the hope that it will be useful, but
10 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
11 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ;; General Public License for more details.
13
14 ;; You should have received a copy of the GNU General Public License
15 ;; along with this program. If not, see
16 ;; <http://www.gnu.org/licenses/>.
17 (require 'cl)
18 (load-file "../test-simple.el")
19 (test-simple-start "test-simple.el")
20
21 (note "basic-tests")
22 (assert-t (memq 'test-simple features) "'test-simple provided")
23
24 (assert-nil nil "assert-nil failure test")
25 (assert-nil nil "Knights of ni")
26 (assert-equal 5 (+ 1 4) "assert-equal")
27 (assert-raises error (error "you should not see this") "assert-raises")
28
29 (end-tests)