]> code.delx.au - gnu-emacs-elpa/blob - packages/test-simple/test/test-basic.el
Merge commit 'ec7ba4f2dbae0901724483de5868127a1cbc38e9'
[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
4 ;; Author: Rocky Bernstein <rocky@gnu.org>
5 ;; URL: http://github.com/rocky/emacs-test-simple
6 ;; Keywords: unit-test
7 ;; Version: 1.0
8
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.
13
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.
18
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/>.
22 (require 'cl)
23 (load-file "../test-simple.el")
24 (test-simple-start "test-simple.el")
25
26 (note "basic-tests")
27 (assert-t (memq 'test-simple features) "'test-simple provided")
28
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")
33
34 (end-tests)