mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
test: save removing the nonexistent binary output for v fmt and v vet tests
This commit is contained in:
@ -142,11 +142,11 @@ pub fn h_divider(divider string) string {
|
||||
// ==== TITLE =========================
|
||||
pub fn header_left(text string, divider string) string {
|
||||
plain_text := strip_ansi(text)
|
||||
xcols, _ := get_terminal_size()
|
||||
xcols, _ := get_terminal_size() // can get 0 in lldb/gdb
|
||||
cols := imax(1, xcols)
|
||||
relement := if divider.len > 0 { divider } else { ' ' }
|
||||
hstart := relement.repeat(4)[0..4]
|
||||
remaining_cols := (cols - (hstart.len + 1 + plain_text.len + 1))
|
||||
remaining_cols := imax(0, (cols - (hstart.len + 1 + plain_text.len + 1)))
|
||||
hend := relement.repeat((remaining_cols + 1) / relement.len)[0..remaining_cols]
|
||||
return '$hstart $text $hend'
|
||||
}
|
||||
|
Reference in New Issue
Block a user