KT-29151 Fix the problematic pages - CharSequence.take() & String.take()

This commit is contained in:
Burak Eregar
2019-01-25 00:18:26 +00:00
committed by Ilya Gorbunov
parent 0f45e3d238
commit 991e739693
3 changed files with 15 additions and 6 deletions
@@ -191,4 +191,10 @@ class Strings {
assertPrints("Hot_Tea".commonSuffixWith("Hot_Coffee"), "")
}
@Sample
fun take() {
val string = "Lorem Ipsum"
assertPrints(string.take(5), "Lorem")
}
}