JS: arrayToString should use toString() instead of direct join to handle nulls properly

#KT-8663 Fixed
This commit is contained in:
Sergey Mashkov
2015-07-30 15:58:07 +03:00
parent 2826f193dd
commit 0e25a5ea82
4 changed files with 14 additions and 2 deletions
@@ -26,6 +26,10 @@ import org.junit.Test as test
class ReversedViewsTest {
test fun testNullToString() {
assertEquals("[null]", listOf<String?>(null).asReversed().toString())
}
test fun testBehavior() {
val original = listOf(2L, 3L, Long.MAX_VALUE)
val reversed = original.reverse()