The lisp-unit Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The lisp-unit Reference Manual

This is the lisp-unit Reference Manual, version 1.0.0, generated automatically by Declt version 2.3 "Robert April" on Tue Jan 09 15:13:06 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

lisp-unit

lisp-unit is a Common Lisp library that supports unit testing. It is an extension of the library written by Chris Riesbeck. There is a long history of testing packages in Lisp, usually called "regression" testers. More recent packages in Lisp and other languages have been inspired by JUnit for Java.

Documentation is located on the project wiki.

Features

Extensions

How to use lisp-unit

The core definitions of lisp-unit may be used by loading the single file 'lisp-unit.lisp'. To use the extensions, lisp-unit must be loaded using either Quicklisp or ASDF.

  1. Load (or compile and load) as a single file : (load "lisp-unit").
  2. Load using Quicklisp : (ql:quickload :lisp-unit).
  3. Load using ASDF : (asdf:load-system :lisp-unit).

Development Plan

Acknowledgments

Contributions to lisp-unit are noted in the wiki. Please let me know if any contributions have not been acknowledged.


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 lisp-unit

Author

Thomas M. Hermann <thomas.m.hermann@odonata-research.com>

License

MIT

Description

Common Lisp library that supports unit testing.

Version

1.0.0

Source

lisp-unit.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Modules

Modules are listed depth-first from the system components tree.


Previous: , Up: Modules   [Contents][Index]

3.1 lisp-unit/extensions

Dependency

lisp-unit.lisp (file)

Parent

lisp-unit (system)

Location

extensions/

Components

Next: , Previous: , Up: Top   [Contents][Index]

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

4.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.1 lisp-unit.asd

Location

lisp-unit.asd

Systems

lisp-unit (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.2 lisp-unit/lisp-unit.lisp

Parent

lisp-unit (system)

Location

lisp-unit.lisp

Packages

lisp-unit

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.3 lisp-unit/extensions/rational.lisp

Parent

extensions (module)

Location

extensions/rational.lisp

Exported Definitions
Internal Definitions

%seq-rational-equal (function)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.4 lisp-unit/extensions/floating-point.lisp

Parent

extensions (module)

Location

extensions/floating-point.lisp

Exported Definitions
Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

4.1.5 lisp-unit/extensions/test-anything-protocol.lisp

Parent

extensions (module)

Location

extensions/test-anything-protocol.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

5.1 lisp-unit

Source

lisp-unit.lisp (file)

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

6.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.1 Special variables

Special Variable: *epsilon*

Set the error epsilon if the defaults are not acceptable.

Package

lisp-unit

Source

floating-point.lisp (file)

Special Variable: *measure*
Package

lisp-unit

Source

floating-point.lisp (file)

Special Variable: *print-errors*

Print error messages if non-NIL.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Special Variable: *print-failures*

Print failure messages if non-NIL.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Special Variable: *print-summary*

Print a summary of the pass, fail, and error count if non-nil.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Special Variable: *significant-figures*

Default to 4 significant figures.

Package

lisp-unit

Source

floating-point.lisp (file)

Special Variable: *summarize-results*

Summarize all of the unit test results.

Package

lisp-unit

Source

lisp-unit.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.2 Macros

Macro: assert-eq EXPECTED FORM &rest EXTRAS

Assert whether expected and form are EQ.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-eql EXPECTED FORM &rest EXTRAS

Assert whether expected and form are EQL.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-equal EXPECTED FORM &rest EXTRAS

Assert whether expected and form are EQUAL.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-equality TEST EXPECTED FORM &rest EXTRAS

Assert whether expected and form are equal according to test.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-equalp EXPECTED FORM &rest EXTRAS

Assert whether expected and form are EQUALP.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-error CONDITION FORM &rest EXTRAS

Assert whether form signals condition.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-expands EXPANSION FORM &rest EXTRAS

Assert whether form expands to expansion.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-false FORM &rest EXTRAS

Assert whether the form is false.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-float-equal EXPECTED FORM &rest EXTRAS
Package

lisp-unit

Source

floating-point.lisp (file)

Macro: assert-nil FORM &rest EXTRAS

Assert whether the form is false.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-norm-equal EXPECTED FORM &rest EXTRAS
Package

lisp-unit

Source

floating-point.lisp (file)

Macro: assert-number-equal EXPECTED FORM &rest EXTRAS
Package

lisp-unit

Source

floating-point.lisp (file)

Macro: assert-numerical-equal EXPECTED FORM &rest EXTRAS
Package

lisp-unit

Source

floating-point.lisp (file)

Macro: assert-prints OUTPUT FORM &rest EXTRAS

Assert whether printing the form generates the output.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: assert-rational-equal EXPECTED FORM &rest EXTRAS
Package

lisp-unit

Source

rational.lisp (file)

Macro: assert-sigfig-equal EXPECTED FORM &rest EXTRAS
Package

lisp-unit

Source

floating-point.lisp (file)

Macro: assert-true FORM &rest EXTRAS

Assert whether the form is true.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: define-test NAME &body BODY

Store the test in the test database.

Package

lisp-unit

Source

lisp-unit.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.3 Functions

Function: array-error ARRAY1 ARRAY2 &key TEST ERROR-FUNCTION

Return a list of the indices and error between the array elements.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: complex-random LIMIT &optional STATE

Return a random complex number.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: list-tags &optional PACKAGE

Return a list of the tags in package.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: list-tests &optional PACKAGE

Return a list of the tests in package.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: logically-equal X Y

Return true if x and y are both false or both true.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: make-2d-list ROWS COLUMNS &key INITIAL-ELEMENT

Return a nested list with INITIAL-ELEMENT.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: make-random-2d-array ROWS COLUMNS &optional LIMIT

Return a 2D array of random numbers.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: make-random-2d-list ROWS COLUMNS &optional LIMIT

Return a nested list of random numbers.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: make-random-list SIZE &optional LIMIT

Return a list of random numbers.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: number-equal NUMBER1 NUMBER2 &optional EPSILON TYPE-EQ-P

Return true if the numbers are equal within some epsilon, optionally requiring the types to be identical.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: reduce-test-results-dbs ALL-RESULTS &key MERGE

Return a new instance of TEST-RESULTS-DB which contains all of the results in the sequence RESULTS. Any conflicts are handled by the function MERGE.

The lambda list for the MERGE function is

(key value-1 value-2)

where:
KEY is the key which appears at least twice in the sequence RESULTS. VALUE-1 and VALUE-2 are the conflicting values for the given KEY.

If MERGE is NIL, then an error is signalled when a conflict occurs.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: remove-tags &optional TAGS PACKAGE

Remove individual tags or entire sets.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: remove-tests &optional NAMES PACKAGE

Remove individual tests or entire sets.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: run-tags &optional TAGS PACKAGE

Run the tests associated with the specified tags in package.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: run-tests &optional TEST-NAMES PACKAGE

Run the specified tests in package.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: set-equal LIST1 LIST2 &rest INITARGS &key KEY TEST

Return true if every element of list1 is an element of list2 and vice versa.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: signal-results &optional FLAG

Signal the results for extensibility.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: summarize-results RESULTS &optional STREAM

Print a summary of all results to the stream.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: tagged-tests &optional TAGS PACKAGE

Return a list of the tests associated with the tags.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: test-code NAME &optional PACKAGE

Returns the code stored for the test name.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: test-documentation NAME &optional PACKAGE

Return the documentation for the test.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: test-names TEST-RESULTS-DB

Return a list of the test names in the database.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: use-debugger &optional FLAG

Use the debugger when testing, or not.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: write-tap TEST-RESULTS &optional STREAM

Write the test results to ‘stream‘ in TAP format. Returns the test results.

Package

lisp-unit

Source

test-anything-protocol.lisp (file)

Function: write-tap-to-file TEST-RESULTS PATH

write the test results to ‘path‘ in TAP format, overwriting ‘path‘. Returns pathname to the output file

Package

lisp-unit

Source

test-anything-protocol.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

6.1.4 Generic functions

Generic Function: default-epsilon VALUE

Return the default epsilon for the value.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: default-epsilon (VALUE array)

Return the default epsilon based on the contents of the array.

Method: default-epsilon (VALUE vector)

Return the default epsilon based on the contents of the vector.

Method: default-epsilon (VALUE list)

Return the default epsilon based on contents of the list.

Method: default-epsilon (VALUE complex)

Return a default epsilon value based on the complex type.

Method: default-epsilon (VALUE float)

Return a default epsilon value based on the floating point type.

Generic Function: error-tests OBJECT
Generic Function: (setf error-tests) NEW-VALUE OBJECT
Package

lisp-unit

Methods
Method: error-tests (TEST-RESULTS-DB test-results-db)

automatically generated reader method

Source

lisp-unit.lisp (file)

Method: (setf error-tests) NEW-VALUE (TEST-RESULTS-DB test-results-db)

automatically generated writer method

Source

lisp-unit.lisp (file)

Generic Function: failed-tests OBJECT
Generic Function: (setf failed-tests) NEW-VALUE OBJECT
Package

lisp-unit

Methods
Method: failed-tests (TEST-RESULTS-DB test-results-db)

automatically generated reader method

Source

lisp-unit.lisp (file)

Method: (setf failed-tests) NEW-VALUE (TEST-RESULTS-DB test-results-db)

automatically generated writer method

Source

lisp-unit.lisp (file)

Generic Function: float-equal DATA1 DATA2 &optional EPSILON

Return true if the floating point data is equal.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: float-equal (DATA1 array) (DATA2 array) &optional EPSILON

Return true if the arrays are equal in length and element-wise comparison of the relative error is less than epsilon.

Method: float-equal (DATA1 vector) (DATA2 vector) &optional EPSILON

Return true if the vectors are equal in length and element-wise comparison of the relative error is less than epsilon.

Method: float-equal (DATA1 vector) (DATA2 list) &optional EPSILON

Return true if the vector and the list are equal in length and element-wise comparison of the relative error is less than epsilon.

Method: float-equal (DATA1 list) (DATA2 vector) &optional EPSILON

Return true if the vector and the list are equal in length and element-wise comparison of the relative error is less than epsilon.

Method: float-equal (DATA1 list) (DATA2 list) &optional EPSILON

Return true if the lists are equal in length and element-wise comparison of the relative error is less than epsilon.

Method: float-equal (DATA1 complex) (DATA2 complex) &optional EPSILON

Return true if the relative error between data1 and data2 is less than epsilon.

Method: float-equal (DATA1 complex) (DATA2 float) &optional EPSILON

Return true if the relative error between data1 and data2 is less than epsilon.

Method: float-equal (DATA1 float) (DATA2 complex) &optional EPSILON

Return true if the relative error between data1 and data2 is less than epsilon.

Method: float-equal (DATA1 rational) (DATA2 float) &optional EPSILON

Return true if the relative error between data1 and data2 is less than epsilon.

Method: float-equal (DATA1 float) (DATA2 rational) &optional EPSILON

Return true if the relative error between data1 and data2 is less than epsilon.

Method: float-equal (DATA1 float) (DATA2 float) &optional EPSILON

Return true if the relative error between data1 and data2 is less than epsilon.

Generic Function: missing-tests OBJECT
Generic Function: (setf missing-tests) NEW-VALUE OBJECT
Package

lisp-unit

Methods
Method: missing-tests (TEST-RESULTS-DB test-results-db)

automatically generated reader method

Source

lisp-unit.lisp (file)

Method: (setf missing-tests) NEW-VALUE (TEST-RESULTS-DB test-results-db)

automatically generated writer method

Source

lisp-unit.lisp (file)

Generic Function: norm DATA &optional MEASURE

Return the element-wise norm of the data.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: norm (DATA array) &optional MEASURE

Return the entrywise norm of the array according to the measure.

Method: norm (DATA vector) &optional MEASURE

Return the norm of the vector according to the measure.

Method: norm (DATA list) &optional MEASURE

Return the norm of the list according to the measure.

Generic Function: norm-equal DATA1 DATA2 &optional EPSILON MEASURE

Return true if the norm of the data is equal.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: norm-equal (DATA1 array) (DATA2 array) &optional EPSILON MEASURE

Return true if the arrays are equal in length and the relative error norm is less than epsilon.

Method: norm-equal (DATA1 vector) (DATA2 vector) &optional EPSILON MEASURE

Return true if the vectors are equal in length and the relative error norm is less than epsilon.

Method: norm-equal (DATA1 vector) (DATA2 list) &optional EPSILON MEASURE

Return true if the vector and the list are equal in length and the relative error norm is less than epsilon.

Method: norm-equal (DATA1 list) (DATA2 vector) &optional EPSILON MEASURE

Return true if the vector and the list are equal in length and the relative error norm is less than epsilon.

Method: norm-equal (DATA1 list) (DATA2 list) &optional EPSILON MEASURE

Return true if the lists are equal in length and the relative error norm is less than epsilon.

Generic Function: numerical-equal RESULT1 RESULT2 &key TEST

Return true if the results are numerically equal according to :TEST.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: numerical-equal (RESULT1 array) (RESULT2 array) &key TEST

Return true if the arrays are equal in dimension and each element is equal according to :TEST.

Method: numerical-equal (RESULT1 vector) (RESULT2 list) &key TEST

Return true if every element of the list is equla to the corresponding element of the vector.

Method: numerical-equal (RESULT1 list) (RESULT2 vector) &key TEST

Return true if every element of the list is equal to the corresponding element of the vector.

Method: numerical-equal (RESULT1 vector) (RESULT2 vector) &key TEST

Return true if the vectors are equal in length and each element is equal according to :TEST.

Method: numerical-equal (RESULT1 list) (RESULT2 list) &key TEST

Return true if the lists are equal in length and each element is equal according to :TEST.

Method: numerical-equal (RESULT1 number) (RESULT2 number) &key TEST

Return true if the the numbers are equal according to :TEST.

Generic Function: print-errors RESULT &optional STREAM

Print the error condition.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Methods
Method: print-errors (RESULTS test-results-db) &optional STREAM

Print all of the error tests.

Method: print-errors (RESULT test-result) &optional STREAM

Print the error condition.

Generic Function: print-failures RESULT &optional STREAM

Report the results of the failed assertion.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Methods
Method: print-failures (RESULTS test-results-db) &optional STREAM

Print all of the failure tests.

Method: print-failures (RESULT test-result) &optional STREAM

Print the failed assertions in the unit test.

Method: print-failures (RESULT output-result) &optional STREAM
Method: print-failures (RESULT macro-result) &optional STREAM
Method: print-failures (RESULT error-result) &optional STREAM
Method: print-failures (RESULT failure-result) &optional STREAM
Method: print-failures (RESULT failure-result) &optional STREAM around

Failure header and footer output.

Generic Function: rational-equal DATA1 DATA2

Return true if the rational data is equal.

Package

lisp-unit

Source

rational.lisp (file)

Methods
Method: rational-equal (DATA1 array) (DATA2 array)

Return true if the arrays are equal in dimension and element-wise equal.

Method: rational-equal (DATA1 vector) (DATA2 vector)

Return true if the vectors are equal in length and element-wise equal.

Method: rational-equal (DATA1 vector) (DATA2 list)

Return true if the vector and the list are equal in length and element-wise equal.

Method: rational-equal (DATA1 list) (DATA2 vector)

Return true if the vector and the list are equal in length and element-wise equal.

Method: rational-equal (DATA1 list) (DATA2 list)

Return true if the lists are equal in length and element-wise equal.

Method: rational-equal (DATA1 complex) (DATA2 complex)

Return true if the complex parts are rational and equal.

Method: rational-equal (DATA1 rational) (DATA2 rational)

Return true if the rational numbers are equal.

Generic Function: relative-error EXACT APPROXIMATE

Return the relative-error between the 2 quantities.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: relative-error (EXACT complex) (APPROXIMATE complex)

Return the relative error of the complex numbers.

Method: relative-error (EXACT complex) (APPROXIMATE float)

Return the relative error between the float and complex number.

Method: relative-error (EXACT float) (APPROXIMATE complex)

Return the relative error between the float and complex number.

Method: relative-error (EXACT float) (APPROXIMATE float)

Return the error delta between the exact and approximate floating point value.

Generic Function: relative-error-norm EXACT APPROXIMATE &optional MEASURE

Return the relative error norm

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: relative-error-norm (EXACT array) (APPROXIMATE vector) &optional MEASURE

Return the relative error norm of the arrays.

Method: relative-error-norm (EXACT vector) (APPROXIMATE vector) &optional MEASURE

Return the relative error norm of the vectors.

Method: relative-error-norm (EXACT vector) (APPROXIMATE list) &optional MEASURE

Return the relative error norm of the list and the vector.

Method: relative-error-norm (EXACT list) (APPROXIMATE vector) &optional MEASURE

Return the relative error norm of the list and the vector.

Method: relative-error-norm (EXACT list) (APPROXIMATE list) &optional MEASURE

Return the relative error norm of the lists.

Generic Function: results CONDITION
Package

lisp-unit

Methods
Method: results (CONDITION test-run-complete)
Source

lisp-unit.lisp (file)

Generic Function: sigfig-equal DATA1 DATA2 &optional SIGNIFICANT-FIGURES

Return true if the data have equal significant figures.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: sigfig-equal (DATA1 array) (DATA2 array) &optional SIGNIFICANT-FIGURES

Return true if the arrays are equal in length and the element-wise comparison is equal to significant figures.

Method: sigfig-equal (DATA1 vector) (DATA2 vector) &optional SIGNIFICANT-FIGURES

Return true if the vectors are equal in length and the element-wise comparison is equal to significant figures.

Method: sigfig-equal (DATA1 list) (DATA2 vector) &optional SIGNIFICANT-FIGURES

Return true if the list and the vector are equal in length and the element-wise comparison is equal to significant figures.

Method: sigfig-equal (DATA1 vector) (DATA2 list) &optional SIGNIFICANT-FIGURES

Return true if the vector and the list are equal in length and the element-wise comparison is equal to significant figures.

Method: sigfig-equal (DATA1 list) (DATA2 list) &optional SIGNIFICANT-FIGURES

Return true if the lists are equal in length and the element-wise comparison is equal to significant figures.

Method: sigfig-equal (DATA1 float) (DATA2 float) &optional SIGNIFICANT-FIGURES

Return true if the floating point numbers have equal significant figures.

Generic Function: sump DATA P

Return the scaling parameter and the sum of the powers of p of the ~ data.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: sump (DATA array) (P real)

Return the scaling parameter and the sum of the powers of p of the ~ array.

Method: sump (DATA vector) (P real)

Return the scaling parameter and the sum of the powers of p of the ~ vector.

Method: sump (DATA list) (P real)

Return the scaling parameter and the sum of the powers of p of the ~ data.

Generic Function: sumsq DATA

Return the scaling parameter and the sum of the squares of the ~ data.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: sumsq (DATA array)

Return the scaling parameter and the sum of the squares of the ~ array.

Method: sumsq (DATA vector)

Return the scaling parameter and the sum of the squares of the ~ vector.

Method: sumsq (DATA list)

Return the scaling parameter and the sum of the squares of the ~ list.


Previous: , Up: Exported definitions   [Contents][Index]

6.1.5 Conditions

Condition: test-run-complete ()

Signaled when a test run is finished.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

condition (condition)

Direct methods

results (method)

Direct slots
Slot: results
Initargs

:results

Readers

results (generic function)


Previous: , Up: Definitions   [Contents][Index]

6.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.1 Special variables

Special Variable: *fail*

The failed assertion results.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Special Variable: *pass*

The passed assertion results.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Special Variable: *signal-results*

Signal the result if non NIL.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Special Variable: *tag-db*

The tag database is simply a hash table.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Special Variable: *test-db*

The unit test database is simply a hash table.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Special Variable: *use-debugger*

If not NIL, enter the debugger when an error is encountered in an assertion.

Package

lisp-unit

Source

lisp-unit.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.2 Macros

Macro: expand-assert TYPE FORM BODY EXPECTED EXTRAS &key TEST

Expand the assertion to the internal format.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: expand-error-form FORM

Wrap the error assertion in HANDLER-CASE.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: expand-extras EXTRAS

Expand extra forms.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: expand-macro-form FORM ENV

Expand the macro form once.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: expand-output-form FORM

Capture the output of the form in a string.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: expand-t-or-f T-OR-F FORM EXTRAS

Expand the true/false assertions to report the arguments.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: with-package-table (TABLE &optional PACKAGE CREATE) &body BODY

Execute the body only if the package table exists.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Macro: with-package-tags (TABLE &optional PACKAGE CREATE) &body BODY

Execute the body only if the package tags exists.

Package

lisp-unit

Source

lisp-unit.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.3 Functions

Function: %array-error ARRAY1 ARRAY2 TEST ERRFUN

Return a list of the indices, values and error of the elements that are not equal.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %array-indices ROW-MAJOR-INDEX DIMENSIONS

Recursively calculate the indices from the row major index.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %complex-float-random LIMIT &optional STATE

Return a random complex float number.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %complex-rational-random LIMIT &optional STATE

Return a random complex rational number.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %expansion-equal FORM1 FORM2

Descend into the forms checking for equality.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: %float-equal DATA1 DATA2 EPSILON

Return true if the relative error between the data is less than epsilon.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %norm-equal SEQ1 SEQ2 EPSILON MEASURE

Return true if the relative error norm is less than epsilon.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %normalize-float SIGNIFICAND &optional EXPONENT

Return the normalized floating point number and exponent.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %record-failure CLASS FORM ACTUAL EXPECTED EXTRAS TEST

Return an instance of the failure result.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: %relative-error EXACT APPROXIMATE

Return the relative error of the numbers.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %relative-error-norm EXACT APPROXIMATE MEASURE

Return the relative error norm of the sequences.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %run-all-thunks &optional PACKAGE

Run all of the test thunks in the package.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: %run-thunks TEST-NAMES &optional PACKAGE

Run the list of test thunks in the package.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: %seq-float-equal SEQ1 SEQ2 EPSILON

Return true if the element-wise comparison of relative error is less than epsilon.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %seq-rational-equal SEQ1 SEQ2

Return true if the sequences are equal length and at each position the corresponding elements are equal.

Package

lisp-unit

Source

rational.lisp (file)

Function: %seq-sigfig-equal SEQ1 SEQ2 SIGNIFICANT-FIGURES

Return true if the element-wise comparison is equal to the specified significant figures.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %sequence-equal SEQ1 SEQ2 TEST

Return true if the sequences are equal in length and each element is equal according to :TEST.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %sequence-error SEQUENCE1 SEQUENCE2 TEST ERROR-FUNCTION

Return a sequence of the indice and error between the sequences.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %sigfig-equal FLOAT1 FLOAT2 SIGNIFICANT-FIGURES

Return true if the floating point numbers have equal significant figures.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: %tests-from-all-tags &optional PACKAGE

Return all of the tests that have been tagged.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: %tests-from-tags TAGS &optional PACKAGE

Return the tests associated with the tags.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: %write-tap-test-result NAME TEST-RESULT I STREAM

Output a single test, taking care to ensure the indentation level is the same before and after invocation.

Package

lisp-unit

Source

test-anything-protocol.lisp (file)

Function: default-db-merge-function RESULTS NEW-RESULTS

Signal an error by default if a merge is required.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: internal-assert TYPE FORM CODE-THUNK EXPECTED-THUNK EXTRAS TEST

Perform the assertion and record the results.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: nappend-test-results-db RESULTS NEW-RESULTS &key MERGE

Merge the results of NEW-RESULTS in to RESULTS. Any conflicts between RESULTS and NEW-RESULTS are handled by the function MERGE.

The lambda list for the MERGE functions is

(key results-value new-results-value)

where:
KEY is the key which appears in RESULTS and NEW-RESULTS. RESULTS-VALUE is the value appearing RESULTS. NEW-RESULTS-VALUE is the value appearing in NEW-RESULTS.

If MERGE is NIL, then an error is signalled when a conflict occurs.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: null-tags-warning-report NULL-TAGS-WARNING STREAM

Write the null-tags-warning to the stream.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: null-tests-warning-report NULL-TESTS-WARNING STREAM

Write the null-tests-warning to the stream.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: package-table PACKAGE &optional CREATE
Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: package-tags PACKAGE &optional CREATE

Return the tags DB for the package.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: parse-body BODY &optional DOC TAG

Separate the components of the body.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: print-summary TEST-RESULT &optional STREAM

Print a summary of the test result.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: record-result TEST-NAME CODE RESULTS

Run the test code and record the result.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: reset-counters ()

Reset the counters to empty lists.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: run-code CODE

Run the code to test the assertions.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: run-test-thunk NAME CODE
Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: run-time-s TEST-RESULT

calculate the run-time of the test in seconds

Package

lisp-unit

Source

test-anything-protocol.lisp (file)

Function: sequence-error SEQUENCE1 SEQUENCE2 &key TEST ERROR-FUNCTION

Return a sequence of the indice and error between the sequence elements.

Package

lisp-unit

Source

floating-point.lisp (file)

Function: test-name-error-report TEST-NAME-ERROR STREAM

Write the test-name-error to the stream.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: test-package NAME

Return the package for storing the test.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: use-debugger-p CONDITION

Debug or ignore errors.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Function: valid-test-name NAME

Signal a type-error if the test name is not a symbol.

Package

lisp-unit

Source

lisp-unit.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.4 Generic functions

Generic Function: %norm DATA MEASURE

Return the norm of the data according to measure.

Package

lisp-unit

Source

floating-point.lisp (file)

Methods
Method: %norm (DATA vector) (MEASURE (eql infinity))

Return the infinity, or maximum, norm of the vector.

Method: %norm (DATA list) (MEASURE (eql infinity))

Return the infinity, or maximum, norm of the list.

Method: %norm (DATA vector) (MEASURE integer)

Return the Euclidean norm of the vector.

Method: %norm (DATA list) (MEASURE integer)

Return the Euclidean norm of the list.

Method: %norm (DATA vector) (MEASURE (eql 2))

Return the Euclidean norm of the vector.

Method: %norm (DATA list) (MEASURE (eql 2))

Return the Euclidean norm of the list.

Method: %norm (DATA vector) (MEASURE (eql 1))

Return the Taxicab norm of the vector.

Method: %norm (DATA list) (MEASURE (eql 1))

Return the Taxicab norm of the list.

Generic Function: actual OBJECT
Package

lisp-unit

Methods
Method: actual (FAILURE-RESULT failure-result)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: assert-result TYPE TEST EXPECTED ACTUAL

Return the result of the assertion.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Methods
Method: assert-result (TYPE (eql output)) TEST EXPECTED ACTUAL

Return the result of an output assertion.

Method: assert-result (TYPE (eql result)) TEST EXPECTED ACTUAL

Return the result of a result assertion.

Method: assert-result (TYPE (eql macro)) TEST EXPECTED ACTUAL

Return the result of a macro assertion.

Method: assert-result (TYPE (eql error)) TEST EXPECTED ACTUAL

Return the result of an error assertion.

Method: assert-result (TYPE (eql equal)) TEST EXPECTED ACTUAL

Return the result of an equal assertion.

Generic Function: code OBJECT
Package

lisp-unit

Methods
Method: code (UNIT-TEST unit-test)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: database OBJECT
Package

lisp-unit

Methods
Method: database (TEST-RESULTS-DB test-results-db)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: doc OBJECT
Package

lisp-unit

Methods
Method: doc (UNIT-TEST unit-test)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: exerr OBJECT
Generic Function: (setf exerr) NEW-VALUE OBJECT
Package

lisp-unit

Methods
Method: exerr (TEST-RESULTS-DB test-results-db)

automatically generated reader method

Source

lisp-unit.lisp (file)

Method: (setf exerr) NEW-VALUE (TEST-RESULTS-DB test-results-db)

automatically generated writer method

Source

lisp-unit.lisp (file)

Method: exerr (TEST-RESULT test-result)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: expected OBJECT
Package

lisp-unit

Methods
Method: expected (FAILURE-RESULT failure-result)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: extras OBJECT
Package

lisp-unit

Methods
Method: extras (FAILURE-RESULT failure-result)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: fail OBJECT
Generic Function: (setf fail) NEW-VALUE OBJECT
Package

lisp-unit

Methods
Method: fail (TEST-RESULTS-DB test-results-db)

automatically generated reader method

Source

lisp-unit.lisp (file)

Method: (setf fail) NEW-VALUE (TEST-RESULTS-DB test-results-db)

automatically generated writer method

Source

lisp-unit.lisp (file)

Method: fail (TEST-RESULT test-result)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: form OBJECT
Package

lisp-unit

Methods
Method: form (FAILURE-RESULT failure-result)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: name OBJECT
Package

lisp-unit

Methods
Method: name (TEST-RESULT test-result)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: pass OBJECT
Generic Function: (setf pass) NEW-VALUE OBJECT
Package

lisp-unit

Methods
Method: pass (TEST-RESULTS-DB test-results-db)

automatically generated reader method

Source

lisp-unit.lisp (file)

Method: (setf pass) NEW-VALUE (TEST-RESULTS-DB test-results-db)

automatically generated writer method

Source

lisp-unit.lisp (file)

Method: pass (TEST-RESULT test-result)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: record-failure TYPE FORM ACTUAL EXPECTED EXTRAS TEST

Record the details of the failure.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Methods
Method: record-failure (TYPE (eql output)) FORM ACTUAL EXPECTED EXTRAS TEST

Return an instance of an output failure result.

Method: record-failure (TYPE (eql result)) FORM ACTUAL EXPECTED EXTRAS TEST

Return an instance of a boolean failure result.

Method: record-failure (TYPE (eql macro)) FORM ACTUAL EXPECTED EXTRAS TEST

Return an instance of a macro failure result.

Method: record-failure (TYPE (eql error)) FORM ACTUAL EXPECTED EXTRAS TEST

Return an instance of an error failure result.

Method: record-failure (TYPE (eql equal)) FORM ACTUAL EXPECTED EXTRAS TEST

Return an instance of an equal failure result.

Generic Function: run-time OBJECT
Package

lisp-unit

Methods
Method: run-time (TEST-RESULT test-result)

Test run time measured in internal time units

Source

lisp-unit.lisp (file)

Generic Function: tags-package-name CONDITION
Package

lisp-unit

Methods
Method: tags-package-name (CONDITION null-tags-warning)
Source

lisp-unit.lisp (file)

Generic Function: test OBJECT
Package

lisp-unit

Methods
Method: test (FAILURE-RESULT failure-result)

automatically generated reader method

Source

lisp-unit.lisp (file)

Generic Function: tests-package-name CONDITION
Package

lisp-unit

Methods
Method: tests-package-name (CONDITION null-tests-warning)
Source

lisp-unit.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

6.2.5 Conditions

Condition: null-tags-warning ()
Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

simple-warning (condition)

Direct methods

tags-package-name (method)

Direct slots
Slot: name
Initargs

:name

Readers

tags-package-name (generic function)

Condition: null-tests-warning ()
Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

simple-warning (condition)

Direct methods

tests-package-name (method)

Direct slots
Slot: name
Initargs

:name

Readers

tests-package-name (generic function)

Condition: test-name-error ()

The test name error is a type error.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

type-error (condition)

Direct Default Initargs
InitargValue
:expected-type(quote symbol)

Previous: , Up: Internal definitions   [Contents][Index]

6.2.6 Classes

Class: boolean-result ()

Result of a failed boolean assertion.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

failure-result (class)

Class: equal-result ()

Result of a failed equal assertion.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

failure-result (class)

Class: error-result ()

Result of a failed error assertion.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

failure-result (class)

Direct methods

print-failures (method)

Class: failure-result ()

Failure details of the assertion.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

standard-object (class)

Direct subclasses
Direct methods
Direct slots
Slot: form
Initargs

:form

Readers

form (generic function)

Slot: actual
Type

list

Initargs

:actual

Readers

actual (generic function)

Slot: expected
Type

list

Initargs

:expected

Readers

expected (generic function)

Slot: extras
Type

list

Initargs

:extras

Readers

extras (generic function)

Slot: test
Type

function

Initargs

:test

Readers

test (generic function)

Class: macro-result ()

Result of a failed macro expansion assertion.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

failure-result (class)

Direct methods

print-failures (method)

Class: output-result ()

Result of a failed output assertion.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

failure-result (class)

Direct methods

print-failures (method)

Class: test-result ()

Store the results of the unit test.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: name
Type

symbol

Initargs

:name

Readers

name (generic function)

Slot: pass
Type

fixnum

Initargs

:pass

Readers

pass (generic function)

Slot: fail
Type

list

Initargs

:fail

Readers

fail (generic function)

Slot: exerr
Initargs

:exerr

Readers

exerr (generic function)

Slot: run-time

Test run time measured in internal time units

Initargs

:run-time

Readers

run-time (generic function)

Direct Default Initargs
InitargValue
:exerrnil
Class: test-results-db ()

Store the results of the tests for further evaluation.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: database
Type

hash-table

Initform

(make-hash-table :test (function eq))

Readers

database (generic function)

Slot: pass
Type

fixnum

Initform

0

Readers

pass (generic function)

Writers

(setf pass) (generic function)

Slot: fail
Type

fixnum

Initform

0

Readers

fail (generic function)

Writers

(setf fail) (generic function)

Slot: exerr
Type

fixnum

Initform

0

Readers

exerr (generic function)

Writers

(setf exerr) (generic function)

Slot: failed-tests
Type

list

Readers

failed-tests (generic function)

Writers

(setf failed-tests) (generic function)

Slot: error-tests
Type

list

Readers

error-tests (generic function)

Writers

(setf error-tests) (generic function)

Slot: missing-tests
Type

list

Readers

missing-tests (generic function)

Writers

(setf missing-tests) (generic function)

Class: unit-test ()

Organize the unit test documentation and code.

Package

lisp-unit

Source

lisp-unit.lisp (file)

Direct superclasses

standard-object (class)

Direct methods
Direct slots
Slot: doc
Type

string

Initargs

:doc

Readers

doc (generic function)

Slot: code
Type

list

Initargs

:code

Readers

code (generic function)

Direct Default Initargs
InitargValue
:doc""
:codenil

Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   M  
Index Entry  Section

F
File, Lisp, lisp-unit.asd: The lisp-unit<dot>asd file
File, Lisp, lisp-unit/extensions/floating-point.lisp: The lisp-unit/extensions/floating-point<dot>lisp file
File, Lisp, lisp-unit/extensions/rational.lisp: The lisp-unit/extensions/rational<dot>lisp file
File, Lisp, lisp-unit/extensions/test-anything-protocol.lisp: The lisp-unit/extensions/test-anything-protocol<dot>lisp file
File, Lisp, lisp-unit/lisp-unit.lisp: The lisp-unit/lisp-unit<dot>lisp file

L
Lisp File, lisp-unit.asd: The lisp-unit<dot>asd file
Lisp File, lisp-unit/extensions/floating-point.lisp: The lisp-unit/extensions/floating-point<dot>lisp file
Lisp File, lisp-unit/extensions/rational.lisp: The lisp-unit/extensions/rational<dot>lisp file
Lisp File, lisp-unit/extensions/test-anything-protocol.lisp: The lisp-unit/extensions/test-anything-protocol<dot>lisp file
Lisp File, lisp-unit/lisp-unit.lisp: The lisp-unit/lisp-unit<dot>lisp file
lisp-unit.asd: The lisp-unit<dot>asd file
lisp-unit/extensions: The lisp-unit/extensions module
lisp-unit/extensions/floating-point.lisp: The lisp-unit/extensions/floating-point<dot>lisp file
lisp-unit/extensions/rational.lisp: The lisp-unit/extensions/rational<dot>lisp file
lisp-unit/extensions/test-anything-protocol.lisp: The lisp-unit/extensions/test-anything-protocol<dot>lisp file
lisp-unit/lisp-unit.lisp: The lisp-unit/lisp-unit<dot>lisp file

M
Module, lisp-unit/extensions: The lisp-unit/extensions module

Jump to:   F   L   M  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   %   (  
A   C   D   E   F   G   I   L   M   N   P   R   S   T   U   V   W  
Index Entry  Section

%
%array-error: Internal functions
%array-indices: Internal functions
%complex-float-random: Internal functions
%complex-rational-random: Internal functions
%expansion-equal: Internal functions
%float-equal: Internal functions
%norm: Internal generic functions
%norm: Internal generic functions
%norm: Internal generic functions
%norm: Internal generic functions
%norm: Internal generic functions
%norm: Internal generic functions
%norm: Internal generic functions
%norm: Internal generic functions
%norm: Internal generic functions
%norm-equal: Internal functions
%normalize-float: Internal functions
%record-failure: Internal functions
%relative-error: Internal functions
%relative-error-norm: Internal functions
%run-all-thunks: Internal functions
%run-thunks: Internal functions
%seq-float-equal: Internal functions
%seq-rational-equal: Internal functions
%seq-sigfig-equal: Internal functions
%sequence-equal: Internal functions
%sequence-error: Internal functions
%sigfig-equal: Internal functions
%tests-from-all-tags: Internal functions
%tests-from-tags: Internal functions
%write-tap-test-result: Internal functions

(
(setf error-tests): Exported generic functions
(setf error-tests): Exported generic functions
(setf exerr): Internal generic functions
(setf exerr): Internal generic functions
(setf fail): Internal generic functions
(setf fail): Internal generic functions
(setf failed-tests): Exported generic functions
(setf failed-tests): Exported generic functions
(setf missing-tests): Exported generic functions
(setf missing-tests): Exported generic functions
(setf pass): Internal generic functions
(setf pass): Internal generic functions

A
actual: Internal generic functions
actual: Internal generic functions
array-error: Exported functions
assert-eq: Exported macros
assert-eql: Exported macros
assert-equal: Exported macros
assert-equality: Exported macros
assert-equalp: Exported macros
assert-error: Exported macros
assert-expands: Exported macros
assert-false: Exported macros
assert-float-equal: Exported macros
assert-nil: Exported macros
assert-norm-equal: Exported macros
assert-number-equal: Exported macros
assert-numerical-equal: Exported macros
assert-prints: Exported macros
assert-rational-equal: Exported macros
assert-result: Internal generic functions
assert-result: Internal generic functions
assert-result: Internal generic functions
assert-result: Internal generic functions
assert-result: Internal generic functions
assert-result: Internal generic functions
assert-sigfig-equal: Exported macros
assert-true: Exported macros

C
code: Internal generic functions
code: Internal generic functions
complex-random: Exported functions

D
database: Internal generic functions
database: Internal generic functions
default-db-merge-function: Internal functions
default-epsilon: Exported generic functions
default-epsilon: Exported generic functions
default-epsilon: Exported generic functions
default-epsilon: Exported generic functions
default-epsilon: Exported generic functions
default-epsilon: Exported generic functions
define-test: Exported macros
doc: Internal generic functions
doc: Internal generic functions

E
error-tests: Exported generic functions
error-tests: Exported generic functions
exerr: Internal generic functions
exerr: Internal generic functions
exerr: Internal generic functions
expand-assert: Internal macros
expand-error-form: Internal macros
expand-extras: Internal macros
expand-macro-form: Internal macros
expand-output-form: Internal macros
expand-t-or-f: Internal macros
expected: Internal generic functions
expected: Internal generic functions
extras: Internal generic functions
extras: Internal generic functions

F
fail: Internal generic functions
fail: Internal generic functions
fail: Internal generic functions
failed-tests: Exported generic functions
failed-tests: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
float-equal: Exported generic functions
form: Internal generic functions
form: Internal generic functions
Function, %array-error: Internal functions
Function, %array-indices: Internal functions
Function, %complex-float-random: Internal functions
Function, %complex-rational-random: Internal functions
Function, %expansion-equal: Internal functions
Function, %float-equal: Internal functions
Function, %norm-equal: Internal functions
Function, %normalize-float: Internal functions
Function, %record-failure: Internal functions
Function, %relative-error: Internal functions
Function, %relative-error-norm: Internal functions
Function, %run-all-thunks: Internal functions
Function, %run-thunks: Internal functions
Function, %seq-float-equal: Internal functions
Function, %seq-rational-equal: Internal functions
Function, %seq-sigfig-equal: Internal functions
Function, %sequence-equal: Internal functions
Function, %sequence-error: Internal functions
Function, %sigfig-equal: Internal functions
Function, %tests-from-all-tags: Internal functions
Function, %tests-from-tags: Internal functions
Function, %write-tap-test-result: Internal functions
Function, array-error: Exported functions
Function, complex-random: Exported functions
Function, default-db-merge-function: Internal functions
Function, internal-assert: Internal functions
Function, list-tags: Exported functions
Function, list-tests: Exported functions
Function, logically-equal: Exported functions
Function, make-2d-list: Exported functions
Function, make-random-2d-array: Exported functions
Function, make-random-2d-list: Exported functions
Function, make-random-list: Exported functions
Function, nappend-test-results-db: Internal functions
Function, null-tags-warning-report: Internal functions
Function, null-tests-warning-report: Internal functions
Function, number-equal: Exported functions
Function, package-table: Internal functions
Function, package-tags: Internal functions
Function, parse-body: Internal functions
Function, print-summary: Internal functions
Function, record-result: Internal functions
Function, reduce-test-results-dbs: Exported functions
Function, remove-tags: Exported functions
Function, remove-tests: Exported functions
Function, reset-counters: Internal functions
Function, run-code: Internal functions
Function, run-tags: Exported functions
Function, run-test-thunk: Internal functions
Function, run-tests: Exported functions
Function, run-time-s: Internal functions
Function, sequence-error: Internal functions
Function, set-equal: Exported functions
Function, signal-results: Exported functions
Function, summarize-results: Exported functions
Function, tagged-tests: Exported functions
Function, test-code: Exported functions
Function, test-documentation: Exported functions
Function, test-name-error-report: Internal functions
Function, test-names: Exported functions
Function, test-package: Internal functions
Function, use-debugger: Exported functions
Function, use-debugger-p: Internal functions
Function, valid-test-name: Internal functions
Function, write-tap: Exported functions
Function, write-tap-to-file: Exported functions

G
Generic Function, %norm: Internal generic functions
Generic Function, (setf error-tests): Exported generic functions
Generic Function, (setf exerr): Internal generic functions
Generic Function, (setf fail): Internal generic functions
Generic Function, (setf failed-tests): Exported generic functions
Generic Function, (setf missing-tests): Exported generic functions
Generic Function, (setf pass): Internal generic functions
Generic Function, actual: Internal generic functions
Generic Function, assert-result: Internal generic functions
Generic Function, code: Internal generic functions
Generic Function, database: Internal generic functions
Generic Function, default-epsilon: Exported generic functions
Generic Function, doc: Internal generic functions
Generic Function, error-tests: Exported generic functions
Generic Function, exerr: Internal generic functions
Generic Function, expected: Internal generic functions
Generic Function, extras: Internal generic functions
Generic Function, fail: Internal generic functions
Generic Function, failed-tests: Exported generic functions
Generic Function, float-equal: Exported generic functions
Generic Function, form: Internal generic functions
Generic Function, missing-tests: Exported generic functions
Generic Function, name: Internal generic functions
Generic Function, norm: Exported generic functions
Generic Function, norm-equal: Exported generic functions
Generic Function, numerical-equal: Exported generic functions
Generic Function, pass: Internal generic functions
Generic Function, print-errors: Exported generic functions
Generic Function, print-failures: Exported generic functions
Generic Function, rational-equal: Exported generic functions
Generic Function, record-failure: Internal generic functions
Generic Function, relative-error: Exported generic functions
Generic Function, relative-error-norm: Exported generic functions
Generic Function, results: Exported generic functions
Generic Function, run-time: Internal generic functions
Generic Function, sigfig-equal: Exported generic functions
Generic Function, sump: Exported generic functions
Generic Function, sumsq: Exported generic functions
Generic Function, tags-package-name: Internal generic functions
Generic Function, test: Internal generic functions
Generic Function, tests-package-name: Internal generic functions

I
internal-assert: Internal functions

L
list-tags: Exported functions
list-tests: Exported functions
logically-equal: Exported functions

M
Macro, assert-eq: Exported macros
Macro, assert-eql: Exported macros
Macro, assert-equal: Exported macros
Macro, assert-equality: Exported macros
Macro, assert-equalp: Exported macros
Macro, assert-error: Exported macros
Macro, assert-expands: Exported macros
Macro, assert-false: Exported macros
Macro, assert-float-equal: Exported macros
Macro, assert-nil: Exported macros
Macro, assert-norm-equal: Exported macros
Macro, assert-number-equal: Exported macros
Macro, assert-numerical-equal: Exported macros
Macro, assert-prints: Exported macros
Macro, assert-rational-equal: Exported macros
Macro, assert-sigfig-equal: Exported macros
Macro, assert-true: Exported macros
Macro, define-test: Exported macros
Macro, expand-assert: Internal macros
Macro, expand-error-form: Internal macros
Macro, expand-extras: Internal macros
Macro, expand-macro-form: Internal macros
Macro, expand-output-form: Internal macros
Macro, expand-t-or-f: Internal macros
Macro, with-package-table: Internal macros
Macro, with-package-tags: Internal macros
make-2d-list: Exported functions
make-random-2d-array: Exported functions
make-random-2d-list: Exported functions
make-random-list: Exported functions
Method, %norm: Internal generic functions
Method, %norm: Internal generic functions
Method, %norm: Internal generic functions
Method, %norm: Internal generic functions
Method, %norm: Internal generic functions
Method, %norm: Internal generic functions
Method, %norm: Internal generic functions
Method, %norm: Internal generic functions
Method, (setf error-tests): Exported generic functions
Method, (setf exerr): Internal generic functions
Method, (setf fail): Internal generic functions
Method, (setf failed-tests): Exported generic functions
Method, (setf missing-tests): Exported generic functions
Method, (setf pass): Internal generic functions
Method, actual: Internal generic functions
Method, assert-result: Internal generic functions
Method, assert-result: Internal generic functions
Method, assert-result: Internal generic functions
Method, assert-result: Internal generic functions
Method, assert-result: Internal generic functions
Method, code: Internal generic functions
Method, database: Internal generic functions
Method, default-epsilon: Exported generic functions
Method, default-epsilon: Exported generic functions
Method, default-epsilon: Exported generic functions
Method, default-epsilon: Exported generic functions
Method, default-epsilon: Exported generic functions
Method, doc: Internal generic functions
Method, error-tests: Exported generic functions
Method, exerr: Internal generic functions
Method, exerr: Internal generic functions
Method, expected: Internal generic functions
Method, extras: Internal generic functions
Method, fail: Internal generic functions
Method, fail: Internal generic functions
Method, failed-tests: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, float-equal: Exported generic functions
Method, form: Internal generic functions
Method, missing-tests: Exported generic functions
Method, name: Internal generic functions
Method, norm: Exported generic functions
Method, norm: Exported generic functions
Method, norm: Exported generic functions
Method, norm-equal: Exported generic functions
Method, norm-equal: Exported generic functions
Method, norm-equal: Exported generic functions
Method, norm-equal: Exported generic functions
Method, norm-equal: Exported generic functions
Method, numerical-equal: Exported generic functions
Method, numerical-equal: Exported generic functions
Method, numerical-equal: Exported generic functions
Method, numerical-equal: Exported generic functions
Method, numerical-equal: Exported generic functions
Method, numerical-equal: Exported generic functions
Method, pass: Internal generic functions
Method, pass: Internal generic functions
Method, print-errors: Exported generic functions
Method, print-errors: Exported generic functions
Method, print-failures: Exported generic functions
Method, print-failures: Exported generic functions
Method, print-failures: Exported generic functions
Method, print-failures: Exported generic functions
Method, print-failures: Exported generic functions
Method, print-failures: Exported generic functions
Method, print-failures: Exported generic functions
Method, rational-equal: Exported generic functions
Method, rational-equal: Exported generic functions
Method, rational-equal: Exported generic functions
Method, rational-equal: Exported generic functions
Method, rational-equal: Exported generic functions
Method, rational-equal: Exported generic functions
Method, rational-equal: Exported generic functions
Method, record-failure: Internal generic functions
Method, record-failure: Internal generic functions
Method, record-failure: Internal generic functions
Method, record-failure: Internal generic functions
Method, record-failure: Internal generic functions
Method, relative-error: Exported generic functions
Method, relative-error: Exported generic functions
Method, relative-error: Exported generic functions
Method, relative-error: Exported generic functions
Method, relative-error-norm: Exported generic functions
Method, relative-error-norm: Exported generic functions
Method, relative-error-norm: Exported generic functions
Method, relative-error-norm: Exported generic functions
Method, relative-error-norm: Exported generic functions
Method, results: Exported generic functions
Method, run-time: Internal generic functions
Method, sigfig-equal: Exported generic functions
Method, sigfig-equal: Exported generic functions
Method, sigfig-equal: Exported generic functions
Method, sigfig-equal: Exported generic functions
Method, sigfig-equal: Exported generic functions
Method, sigfig-equal: Exported generic functions
Method, sump: Exported generic functions
Method, sump: Exported generic functions
Method, sump: Exported generic functions
Method, sumsq: Exported generic functions
Method, sumsq: Exported generic functions
Method, sumsq: Exported generic functions
Method, tags-package-name: Internal generic functions
Method, test: Internal generic functions
Method, tests-package-name: Internal generic functions
missing-tests: Exported generic functions
missing-tests: Exported generic functions

N
name: Internal generic functions
name: Internal generic functions
nappend-test-results-db: Internal functions
norm: Exported generic functions
norm: Exported generic functions
norm: Exported generic functions
norm: Exported generic functions
norm-equal: Exported generic functions
norm-equal: Exported generic functions
norm-equal: Exported generic functions
norm-equal: Exported generic functions
norm-equal: Exported generic functions
norm-equal: Exported generic functions
null-tags-warning-report: Internal functions
null-tests-warning-report: Internal functions
number-equal: Exported functions
numerical-equal: Exported generic functions
numerical-equal: Exported generic functions
numerical-equal: Exported generic functions
numerical-equal: Exported generic functions
numerical-equal: Exported generic functions
numerical-equal: Exported generic functions
numerical-equal: Exported generic functions

P
package-table: Internal functions
package-tags: Internal functions
parse-body: Internal functions
pass: Internal generic functions
pass: Internal generic functions
pass: Internal generic functions
print-errors: Exported generic functions
print-errors: Exported generic functions
print-errors: Exported generic functions
print-failures: Exported generic functions
print-failures: Exported generic functions
print-failures: Exported generic functions
print-failures: Exported generic functions
print-failures: Exported generic functions
print-failures: Exported generic functions
print-failures: Exported generic functions
print-failures: Exported generic functions
print-summary: Internal functions

R
rational-equal: Exported generic functions
rational-equal: Exported generic functions
rational-equal: Exported generic functions
rational-equal: Exported generic functions
rational-equal: Exported generic functions
rational-equal: Exported generic functions
rational-equal: Exported generic functions
rational-equal: Exported generic functions
record-failure: Internal generic functions
record-failure: Internal generic functions
record-failure: Internal generic functions
record-failure: Internal generic functions
record-failure: Internal generic functions
record-failure: Internal generic functions
record-result: Internal functions
reduce-test-results-dbs: Exported functions
relative-error: Exported generic functions
relative-error: Exported generic functions
relative-error: Exported generic functions
relative-error: Exported generic functions
relative-error: Exported generic functions
relative-error-norm: Exported generic functions
relative-error-norm: Exported generic functions
relative-error-norm: Exported generic functions
relative-error-norm: Exported generic functions
relative-error-norm: Exported generic functions
relative-error-norm: Exported generic functions
remove-tags: Exported functions
remove-tests: Exported functions
reset-counters: Internal functions
results: Exported generic functions
results: Exported generic functions
run-code: Internal functions
run-tags: Exported functions
run-test-thunk: Internal functions
run-tests: Exported functions
run-time: Internal generic functions
run-time: Internal generic functions
run-time-s: Internal functions

S
sequence-error: Internal functions
set-equal: Exported functions
sigfig-equal: Exported generic functions
sigfig-equal: Exported generic functions
sigfig-equal: Exported generic functions
sigfig-equal: Exported generic functions
sigfig-equal: Exported generic functions
sigfig-equal: Exported generic functions
sigfig-equal: Exported generic functions
signal-results: Exported functions
summarize-results: Exported functions
sump: Exported generic functions
sump: Exported generic functions
sump: Exported generic functions
sump: Exported generic functions
sumsq: Exported generic functions
sumsq: Exported generic functions
sumsq: Exported generic functions
sumsq: Exported generic functions

T
tagged-tests: Exported functions
tags-package-name: Internal generic functions
tags-package-name: Internal generic functions
test: Internal generic functions
test: Internal generic functions
test-code: Exported functions
test-documentation: Exported functions
test-name-error-report: Internal functions
test-names: Exported functions
test-package: Internal functions
tests-package-name: Internal generic functions
tests-package-name: Internal generic functions

U
use-debugger: Exported functions
use-debugger-p: Internal functions

V
valid-test-name: Internal functions

W
with-package-table: Internal macros
with-package-tags: Internal macros
write-tap: Exported functions
write-tap-to-file: Exported functions

Jump to:   %   (  
A   C   D   E   F   G   I   L   M   N   P   R   S   T   U   V   W  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
A   C   D   E   F   M   N   P   R   S   T  
Index Entry  Section

*
*epsilon*: Exported special variables
*fail*: Internal special variables
*measure*: Exported special variables
*pass*: Internal special variables
*print-errors*: Exported special variables
*print-failures*: Exported special variables
*print-summary*: Exported special variables
*signal-results*: Internal special variables
*significant-figures*: Exported special variables
*summarize-results*: Exported special variables
*tag-db*: Internal special variables
*test-db*: Internal special variables
*use-debugger*: Internal special variables

A
actual: Internal classes

C
code: Internal classes

D
database: Internal classes
doc: Internal classes

E
error-tests: Internal classes
exerr: Internal classes
exerr: Internal classes
expected: Internal classes
extras: Internal classes

F
fail: Internal classes
fail: Internal classes
failed-tests: Internal classes
form: Internal classes

M
missing-tests: Internal classes

N
name: Internal conditions
name: Internal conditions
name: Internal classes

P
pass: Internal classes
pass: Internal classes

R
results: Exported conditions
run-time: Internal classes

S
Slot, actual: Internal classes
Slot, code: Internal classes
Slot, database: Internal classes
Slot, doc: Internal classes
Slot, error-tests: Internal classes
Slot, exerr: Internal classes
Slot, exerr: Internal classes
Slot, expected: Internal classes
Slot, extras: Internal classes
Slot, fail: Internal classes
Slot, fail: Internal classes
Slot, failed-tests: Internal classes
Slot, form: Internal classes
Slot, missing-tests: Internal classes
Slot, name: Internal conditions
Slot, name: Internal conditions
Slot, name: Internal classes
Slot, pass: Internal classes
Slot, pass: Internal classes
Slot, results: Exported conditions
Slot, run-time: Internal classes
Slot, test: Internal classes
Special Variable, *epsilon*: Exported special variables
Special Variable, *fail*: Internal special variables
Special Variable, *measure*: Exported special variables
Special Variable, *pass*: Internal special variables
Special Variable, *print-errors*: Exported special variables
Special Variable, *print-failures*: Exported special variables
Special Variable, *print-summary*: Exported special variables
Special Variable, *signal-results*: Internal special variables
Special Variable, *significant-figures*: Exported special variables
Special Variable, *summarize-results*: Exported special variables
Special Variable, *tag-db*: Internal special variables
Special Variable, *test-db*: Internal special variables
Special Variable, *use-debugger*: Internal special variables

T
test: Internal classes

Jump to:   *  
A   C   D   E   F   M   N   P   R   S   T  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   B   C   E   F   L   M   N   O   P   S   T   U  
Index Entry  Section

B
boolean-result: Internal classes

C
Class, boolean-result: Internal classes
Class, equal-result: Internal classes
Class, error-result: Internal classes
Class, failure-result: Internal classes
Class, macro-result: Internal classes
Class, output-result: Internal classes
Class, test-result: Internal classes
Class, test-results-db: Internal classes
Class, unit-test: Internal classes
Condition, null-tags-warning: Internal conditions
Condition, null-tests-warning: Internal conditions
Condition, test-name-error: Internal conditions
Condition, test-run-complete: Exported conditions

E
equal-result: Internal classes
error-result: Internal classes

F
failure-result: Internal classes

L
lisp-unit: The lisp-unit system
lisp-unit: The lisp-unit package

M
macro-result: Internal classes

N
null-tags-warning: Internal conditions
null-tests-warning: Internal conditions

O
output-result: Internal classes

P
Package, lisp-unit: The lisp-unit package

S
System, lisp-unit: The lisp-unit system

T
test-name-error: Internal conditions
test-result: Internal classes
test-results-db: Internal classes
test-run-complete: Exported conditions

U
unit-test: Internal classes

Jump to:   B   C   E   F   L   M   N   O   P   S   T   U