1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: change skip color to yellow instead of red

This commit is contained in:
Daniel Däschle
2020-04-08 16:52:40 +02:00
committed by GitHub
parent bcb9d90abb
commit a61654009f
2 changed files with 7 additions and 1 deletions

View File

@@ -30,6 +30,12 @@ pub fn fail_message(s string) string {
return if can_show_color_on_stdout() { red(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 }
}
// h_divider returns a horizontal divider line with a dynamic width,
// that depends on the current terminal settings.
// If an empty string is passed in, print enough spaces to make a new line