Created
September 22, 2010 19:42
-
-
Save nobutaka/592372 to your computer and use it in GitHub Desktop.
display test result in color.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use 'clojure.test) | |
; Green or Red | |
(defn gor [summary] | |
(if (successful? summary) | |
(print (str (char 27) "[32m" "succeeded\n" (char 27) "[m")) | |
(print (str (char 27) "[31m" "failed\n" (char 27) "[m"))) | |
summary) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment