forked from OdonataResearchLLC/lisp-unit
-
Notifications
You must be signed in to change notification settings - Fork 6
/
assert-package.lisp
47 lines (46 loc) · 1.68 KB
/
assert-package.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(in-package :cl-user)
(handler-bind
;; fixes sbcl SUPER warnings that prevent automatic fasl loading
((warning (lambda (c)
(format *error-output* "~A~%~S" c c)
(muffle-warning c))))
(defpackage :lisp-unit2-asserts
(:import-from :lisp-unit2
:assert-eq :assert-eql :assert-equal :assert-equalp
:assert-equality :assert-prints :assert-expands :assert-true
:assert-false :assert-error :assert-no-error
:assert-warning :assert-no-warning
:assert-signal :assert-no-signal
:assert-typep
;; floating point
:*measure* :*epsilon* :*significant-figures*
:default-epsilon :sumsq :sump :norm
:relative-error :relative-error-norm
:array-error
:float-equal :assert-float-equal
:sigfig-equal :assert-sigfig-equal
:norm-equal :assert-norm-equal
:number-equal :assert-number-equal
:numerical-equal :assert-numerical-equal
;; rational
:assert-rational-equal :rational-equal)
(:export
:assert-eq :assert-eql :assert-equal :assert-equalp
:assert-equality :assert-prints :assert-expands :assert-true
:assert-false :assert-error :assert-no-error
:assert-warning :assert-no-warning
:assert-signal :assert-no-signal
:assert-typep
;; floating point
:*measure* :*epsilon* :*significant-figures*
:default-epsilon :sumsq :sump :norm
:relative-error :relative-error-norm
:array-error
:float-equal :assert-float-equal
:sigfig-equal :assert-sigfig-equal
:norm-equal :assert-norm-equal
:number-equal :assert-number-equal
:numerical-equal :assert-numerical-equal
;; rational
:assert-rational-equal :rational-equal
)))