extend tests for `strings` module
parent
848cd3cb3e
commit
b88cb1ca69
|
@ -1,6 +1,7 @@
|
||||||
import strings
|
import strings
|
||||||
|
|
||||||
fn test_repeat() {
|
fn test_repeat() {
|
||||||
assert strings.repeat(`x`, 10) == 'xxxxxxxxxx'
|
assert strings.repeat(`x`, 10) == 'xxxxxxxxxx'
|
||||||
assert strings.repeat(`a`, 1) == 'a'
|
assert strings.repeat(`a`, 1) == 'a'
|
||||||
}
|
assert strings.repeat(`a`, 0) == ''
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue