JS: arrayToString should use toString() instead of direct join to handle nulls properly
#KT-8663 Fixed
This commit is contained in:
@@ -60,4 +60,8 @@ class ListSpecificTest {
|
||||
assertEquals(3, list.size())
|
||||
assertEquals("beverage,location,name", list.join(","))
|
||||
}
|
||||
|
||||
Test fun testNullToString() {
|
||||
assertEquals("[null]", listOf<String?>(null).toString())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user