tests: make the SKIP and FAIL labels more distinctive
parent
7a218286b3
commit
e10290eb8e
|
@ -27,13 +27,13 @@ pub fn ok_message(s string) string {
|
|||
// fail_message returns a colored string with red color.
|
||||
// If colors are not allowed, returns a given string.
|
||||
pub fn fail_message(s string) string {
|
||||
return if can_show_color_on_stdout() { red(s) } else { s }
|
||||
return if can_show_color_on_stdout() { bold(bg_red(white(s))) } else { s }
|
||||
}
|
||||
|
||||
// warn_message returns a colored string with yellow color.
|
||||
// If colors are not allowed, returns a given string.
|
||||
pub fn warn_message(s string) string {
|
||||
return if can_show_color_on_stdout() { yellow(s) } else { s }
|
||||
return if can_show_color_on_stdout() { bright_yellow(s) } else { s }
|
||||
}
|
||||
|
||||
// h_divider returns a horizontal divider line with a dynamic width,
|
||||
|
|
Loading…
Reference in New Issue