v/vlib/strings/strings_test.v

7 lines
126 B
Go
Raw Normal View History

import strings
fn test_repeat() {
assert strings.repeat(`x`, 10) == 'xxxxxxxxxx'
assert strings.repeat(`a`, 1) == 'a'
}