extend tests for `strings` module

pull/3182/head
Alexey 2019-12-22 02:05:30 +03:00 committed by Alexander Medvednikov
parent 848cd3cb3e
commit b88cb1ca69
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import strings
fn test_repeat() {
assert strings.repeat(`x`, 10) == 'xxxxxxxxxx'
assert strings.repeat(`a`, 1) == 'a'
}
assert strings.repeat(`x`, 10) == 'xxxxxxxxxx'
assert strings.repeat(`a`, 1) == 'a'
assert strings.repeat(`a`, 0) == ''
}