Skip to content

Commit

Permalink
Give testutils some test-colouring facilities
Browse files Browse the repository at this point in the history
  • Loading branch information
mn200 committed Dec 29, 2017
1 parent 25b94cf commit 4dfc6ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/parse/testutils.sig
Expand Up @@ -18,4 +18,11 @@ val convtest : (string * (Term.term -> Thm.thm) * Term.term * Term.term) -> unit
val timed : ('a -> 'b) -> ('b testresult -> unit) -> 'a -> unit
val exncheck : ('a -> unit) -> 'a testresult -> unit

val bold : string -> string
val boldred : string -> string
val boldgreen : string -> string
val red : string -> string
val dim : string -> string
val clear : string -> string

end
1 change: 1 addition & 0 deletions src/parse/testutils.sml
Expand Up @@ -38,6 +38,7 @@ val boldred = checkterm "\027[31m\027[1m"
val boldgreen = checkterm "\027[32m\027[1m"
val red = checkterm "\027[31m"
val dim = checkterm "\027[2m"
val clear = checkterm "\027[0m"

val really_die = ref true;
fun die s =
Expand Down

0 comments on commit 4dfc6ba

Please sign in to comment.