Skip to content

Commit

Permalink
Actually run test cases in test/conditions.lisp
Browse files Browse the repository at this point in the history
* test/conditions.lisp (define-condition-suite): generate unique names
  for test cases; placing them in different test suites is not enough
  • Loading branch information
scymtym committed Jan 2, 2014
1 parent 89093d3 commit 776d672
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/conditions.lisp
Expand Up @@ -96,7 +96,11 @@

(defmacro define-condition-suite ((name &key (constructor name))
&body cases)
(let ((suite-name (make-keyword name)))
(let ((suite-name (make-keyword name))
(condition-case-name (symbolicate
name '#:.construct-and-print/make-condition))
(constructor-case-name (symbolicate
name '#:.construct-and-print/constructor)))
`(progn
(def-suite ,suite-name
:in :more-conditions
Expand All @@ -105,7 +109,7 @@
name))
(in-suite ,suite-name)

(test construct-and-print/make-condition
(test ,condition-case-name
,(format nil "Test printing instances of the `~(~A~)' condition class"
name)

Expand All @@ -117,7 +121,7 @@
(list ,@cases)))

,@(when (fboundp constructor)
`((test construct-and-print/constructor
`((test ,constructor-case-name
,(format nil "Test printing instances of the `~(~A~)' condition class"
name)

Expand Down

0 comments on commit 776d672

Please sign in to comment.