mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
string: add repeat() method
This commit is contained in:
committed by
Alexander Medvednikov
parent
9834ccfcd9
commit
fb4f14ba76
@@ -459,3 +459,8 @@ fn test_ustring_count() {
|
||||
assert (a.count('ﷰ'.ustring())) == 2
|
||||
assert (a.count('a'.ustring())) == 0
|
||||
}
|
||||
|
||||
fn test_repeat() {
|
||||
s := 'V! '
|
||||
assert s.repeat(5) == 'V! V! V! V! V! '
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user