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

string: fix replace_each() (#9415)

This commit is contained in:
yuyi
2021-03-22 16:46:45 +08:00
committed by GitHub
parent 400b4027c9
commit 320cd00203
2 changed files with 10 additions and 1 deletions

View File

@@ -329,6 +329,8 @@ fn test_replace_each() {
'b',
])
assert y == 'bbbb'
s2 := 'hello_world hello'
assert s2.replace_each(['hello_world', 'aaa', 'hello', 'bbb']) == 'aaa bbb'
}
fn test_itoa() {