1 ;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
2 ;; Copyright (C) 2015 Free Software Foundation, Inc
4 ;; Author: Rocky Bernstein <rocky@gnu.org>
5 ;; URL: http://github.com/rocky/emacs-test-simple
9 ;; This program is free software: you can redistribute it and/or
10 ;; modify it under the terms of the GNU General Public License as
11 ;; published by the Free Software Foundation, either version 3 of the
12 ;; License, or (at your option) any later version.
14 ;; This program is distributed in the hope that it will be useful, but
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ;; General Public License for more details.
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with this program. If not, see
21 ;; <http://www.gnu.org/licenses/>.
23 (load-file "../test-simple.el")
24 (test-simple-start "test-simple.el")
27 (assert-t (memq 'test-simple features) "'test-simple provided")
29 (assert-nil nil "assert-nil failure test")
30 (assert-nil nil "Knights if ni")
31 (assert-equal 5 (+ 1 4) "assert-equal")
32 (assert-raises error (error "you should not see this") "assert-raises")