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
@@ -665,5 +665,9 @@ class CollectionTest {
compare(linkedMapOf(2 to 3), mapOf(2 to 3)) { mapBehavior() }
}
test fun toStringTest() {
// we need toString() inside pattern because of KT-8666
assertEquals("[1, a, null, ${Long.MAX_VALUE.toString()}]", listOf(1, "a", null, Long.MAX_VALUE).toString())
}
}