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

strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313)

This commit is contained in:
Benjamin Stigsen
2022-01-28 19:34:44 +01:00
committed by GitHub
parent 7f22ed7935
commit ceb05b163a
23 changed files with 100 additions and 88 deletions

View File

@@ -748,9 +748,9 @@ fn test_long_query() {
base_string := rand.string(test_len)
for c in base_string {
buf.write_b(`(`)
buf.write_b(c)
buf.write_b(`)`)
buf.write_byte(`(`)
buf.write_byte(c)
buf.write_byte(`)`)
}
mut query := buf.str()
@@ -767,11 +767,11 @@ fn test_long_query() {
// test 2
buf.clear()
for c in base_string {
buf.write_b(`(`)
buf.write_b(c)
buf.write_byte(`(`)
buf.write_byte(c)
}
for _ in 0..base_string.len {
buf.write_b(`)`)
buf.write_byte(`)`)
}
query = buf.str()
re = regex.regex_opt(query) or { panic(err) }