mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
preludes,builder,cgen: add support for VTEST_RUNNER=tap and -test-runner tap (#12523)
This commit is contained in:
@@ -1444,6 +1444,7 @@ pub fn (s &string) free() {
|
||||
return
|
||||
}
|
||||
unsafe {
|
||||
// C.printf(c's: %x %s\n', s.str, s.str)
|
||||
free(s.str)
|
||||
}
|
||||
s.is_lit = -98761234
|
||||
@@ -1712,8 +1713,8 @@ pub fn (s string) strip_margin() string {
|
||||
pub fn (s string) strip_margin_custom(del byte) string {
|
||||
mut sep := del
|
||||
if sep.is_space() {
|
||||
eprintln('Warning: `strip_margin` cannot use white-space as a delimiter')
|
||||
eprintln(' Defaulting to `|`')
|
||||
println('Warning: `strip_margin` cannot use white-space as a delimiter')
|
||||
println(' Defaulting to `|`')
|
||||
sep = `|`
|
||||
}
|
||||
// don't know how much space the resulting string will be, but the max it
|
||||
|
||||
Reference in New Issue
Block a user