projects
/
fiveam.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6638700
)
Supply slightly less cryptic error messages when mispelling the name of a fixture...
author
Marco Baringer
<mb@bese.it>
Sat, 10 Dec 2005 14:41:19 +0000
(15:41 +0100)
committer
Marco Baringer
<mb@bese.it>
Sat, 10 Dec 2005 14:41:19 +0000
(15:41 +0100)
src/fixture.lisp
patch
|
blob
|
history
diff --git
a/src/fixture.lisp
b/src/fixture.lisp
index
325933c
..
32ca2dd
100644
(file)
--- a/
src/fixture.lisp
+++ b/
src/fixture.lisp
@@
-33,6
+33,9
@@
See Also: WITH-FIXTURE
"Insert BODY into the fixture named FIXTURE-NAME.
See Also: DEF-FIXTURE"
+ (assert (get-fixture fixture-name)
+ (fixture-name)
+ "Unknown fixture ~S." fixture-name)
(destructuring-bind (largs &rest lbody) (get-fixture fixture-name)
`(macrolet ((&body () '(progn ,@body)))
(funcall (lambda ,largs ,@lbody) ,@args))))