projects
/
fiveam.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix modelines
[fiveam.git]
/
src
/
test.lisp
diff --git
a/src/test.lisp
b/src/test.lisp
index
e046859
..
a8269c6
100644
(file)
--- a/
src/test.lisp
+++ b/
src/test.lisp
@@
-1,6
+1,6
@@
-;; -*- lisp -*-
+;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
-(in-package :it.bese.FiveAM)
+(in-package :it.bese.fiveam)
;;;; * Tests
;;;; * Tests
@@
-11,11
+11,20
@@
;;;; collection of checks which can be run and a test suite is a named
;;;; collection of tests and test suites.
;;;; collection of checks which can be run and a test suite is a named
;;;; collection of tests and test suites.
-(deflookup-table test
- :at-redefinition nil
- :documentation "Lookup table mapping test (and test suite)
+(defvar *test*
+ (make-hash-table :test 'eql)
+ "Lookup table mapping test (and test suite)
names to objects.")
names to objects.")
+(defun get-test (key &optional default)
+ (gethash key *test* default))
+
+(defun (setf get-test) (value key)
+ (setf (gethash key *test*) value))
+
+(defun rem-test (key)
+ (remhash key *test*))
+
(defun test-names ()
(loop for test being the hash-keys of *test*
collect test))
(defun test-names ()
(loop for test being the hash-keys of *test*
collect test))