mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
7 lines
126 B
Go
7 lines
126 B
Go
|
import strings
|
||
|
|
||
|
fn test_repeat() {
|
||
|
assert strings.repeat(`x`, 10) == 'xxxxxxxxxx'
|
||
|
assert strings.repeat(`a`, 1) == 'a'
|
||
|
}
|