X-Git-Url: http://git.kpe.io/?p=xlunit.git;a=blobdiff_plain;f=result.lisp;h=80f411a7aab49ca343251cc9f144af6215cb2bb4;hp=f2c4893e5df60ac2838cab896f4b04bbcb6d0426;hb=HEAD;hpb=f67db194b4ffb7d673feb50dc0e152274c14cd76 diff --git a/result.lisp b/result.lisp index f2c4893..80f411a 100644 --- a/result.lisp +++ b/result.lisp @@ -32,8 +32,8 @@ (defmethod start-test ((tcase test) (res test-results)) (incf (run-tests res)) (mapc (lambda (listener) - (start-test listener tcase)) - (listeners res)) + (start-test listener tcase)) + (listeners res)) res) (defmethod end-test ((tcase test) (res test-results)) @@ -49,12 +49,12 @@ (defclass test-failure () ((failed-test :initarg :failed-test :reader failed-test) (thrown-condition :initarg :thrown-condition - :reader thrown-condition)) + :reader thrown-condition)) (:documentation "Stored failures/errors in test-results slots")) (defun make-test-failure (test condition) (make-instance 'test-failure :failed-test test - :thrown-condition condition)) + :thrown-condition condition)) (defmethod is-failure ((failure test-failure)) "Returns T if a failure was a test-failure condition" @@ -63,9 +63,9 @@ (defmethod print-object ((obj test-failure) stream) (print-unreadable-object (obj stream :type t :identity nil) (format stream "~A: " (failed-test obj)) - (apply #'format stream - (simple-condition-format-control (thrown-condition obj)) - (simple-condition-format-arguments (thrown-condition obj))))) + (apply #'format stream + (simple-condition-format-control (thrown-condition obj)) + (simple-condition-format-arguments (thrown-condition obj))))) (defmethod was-successful ((result test-results)) "Returns T if a result has no failures or errors" @@ -79,13 +79,13 @@ (defmethod add-error ((ob test-results) (tcase test-case) condition) (push (make-test-failure tcase condition) (errors ob)) (mapc #'(lambda (single-listener) - (add-error single-listener tcase condition)) - (listeners ob))) + (add-error single-listener tcase condition)) + (listeners ob))) (defmethod add-failure ((ob test-results) (tcase test-case) condition) (push (make-test-failure tcase condition) (failures ob)) (mapc #'(lambda (single-listener) - (add-failure single-listener tcase condition)) - (listeners ob))) + (add-failure single-listener tcase condition)) + (listeners ob)))