tests: make the SKIP and FAIL labels more distinctive

pull/4294/head
Delyan Angelov 2020-04-08 18:41:46 +03:00
parent 7a218286b3
commit e10290eb8e
1 changed files with 2 additions and 2 deletions

View File

@ -27,13 +27,13 @@ pub fn ok_message(s string) string {
// fail_message returns a colored string with red color. // fail_message returns a colored string with red color.
// If colors are not allowed, returns a given string. // If colors are not allowed, returns a given string.
pub fn fail_message(s string) 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. // warn_message returns a colored string with yellow color.
// If colors are not allowed, returns a given string. // If colors are not allowed, returns a given string.
pub fn warn_message(s string) 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, // h_divider returns a horizontal divider line with a dynamic width,