[lang-ref] ( trim_last ) ( kotlin )
@Test
fun trimLast() {
// trimLast
val text = "\n\t abc def\t \n "
val trimmed = text.trimEnd()
assertEquals("\n\t abc def", trimmed)
}
@Test
fun trimLast() {
// trimLast
val text = "\n\t abc def\t \n "
val trimmed = text.trimEnd()
assertEquals("\n\t abc def", trimmed)
}