Permalink
Browse files

Support reverse

  • Loading branch information...
1 parent e71f1f4 commit 06793ab4f8ec1b3a0862d0b4d41a891173c29cbd @josephwilk josephwilk committed Apr 9, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/midje/emission/colorize.clj
  2. +1 −0 test/midje/emission/t_colorize.clj
View
2 src/midje/emission/colorize.clj
@@ -25,7 +25,7 @@
(def pass color/green)
(def note color/cyan))
- "REVERSE" (do
+ ("REVERSE" ":REVERSE") (do
(def fail color/red-bg)
(def pass color/green-bg)
(def note color/cyan-bg))
View
1 test/midje/emission/t_colorize.clj
@@ -28,6 +28,7 @@
color/fail "FALSE" true false "string"
color/fail nil false false "string"
color/fail "TRUE" false false "\u001b[31mstring\u001b[0m"
+ color/fail nil :reverse false "\u001b[41mstring\u001b[0m"
color/note "FALSE" nil false "string"
color/note "TRUE" nil false "\u001b[36mstring\u001b[0m"

0 comments on commit 06793ab

Please sign in to comment.