StdLib deprecations cleanup: length, size, indices and other collection operations.

This commit is contained in:
Ilya Gorbunov
2015-06-25 18:36:52 +03:00
parent 2c31a1a345
commit f3a19ebe11
11 changed files with 42 additions and 42 deletions
+3 -3
View File
@@ -262,12 +262,12 @@ abstract class MapJsTest {
test fun setViaIndexOperators() {
val map = HashMap<String, String>()
assertTrue{ map.empty }
assertEquals(map.size, 0)
assertTrue{ map.isEmpty() }
assertEquals(map.size(), 0)
map["name"] = "James"
assertTrue{ !map.empty }
assertTrue{ !map.isEmpty() }
assertEquals(map.size(), 1)
assertEquals("James", map["name"])
}