Remove map iteration from ListSpecificTest - JS fails, but it is irrelevant to test.
This commit is contained in:
@@ -42,15 +42,14 @@ class ListSpecificTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Test fun mutableList() {
|
Test fun mutableList() {
|
||||||
val map = mapOf("beverage" to "beer", "location" to "Mells", "name" to "James")
|
val items = listOf("beverage", "location", "name")
|
||||||
|
|
||||||
var list = arrayListOf<String>()
|
var list = arrayListOf<String>()
|
||||||
for (e in map) {
|
for (item in items) {
|
||||||
list += e.getKey()
|
list += item
|
||||||
list += e.getValue()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assertEquals(6, list.size())
|
assertEquals(3, list.size())
|
||||||
assertEquals("beverage,beer,location,Mells,name,James", list.makeString(","))
|
assertEquals("beverage,location,name", list.join(","))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user