From: Owen Rodley Date: Sun, 28 Apr 2013 01:28:11 +0000 (+1200) Subject: Colorize test output X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=1cd3b2403660569e2983ce646fbf0d364fbfefe5;p=jscl.git Colorize test output Failures show up in red, and unexpected successes in orange --- diff --git a/tests.lisp b/tests.lisp index 8fcd862..6fce25e 100644 --- a/tests.lisp +++ b/tests.lisp @@ -14,7 +14,9 @@ (write-line ,(concat "Test `" (prin1-to-string condition) "' passed")) (incf *passed-tests*)) (t - (write-line ,(concat "Test `" (prin1-to-string condition) "' failed.")) + (write-line ,(concat "Test `" + (prin1-to-string condition) + "' failed.")) (incf *failed-tests*))) (incf *total-tests*))) @@ -22,7 +24,9 @@ `(progn (cond (,condition - (write-line ,(concat "Test `" (prin1-to-string condition) "' passed unexpectedly!")) + (write-line ,(concat "Test `" + (prin1-to-string condition) + "' passed unexpectedly!")) (incf *unexpected-passes*)) (t (write-line ,(concat "Test `" (prin1-to-string condition) "' failed expectedly."))