提交 028be6a6 编写于 作者: S Svetlana Isakova

stdlib change (after KT-1873 might be restored)

上级 2bd0be56
......@@ -320,7 +320,8 @@ class CollectionTest {
assertEquals(0, ArrayList<Double>().count())
}
test fun last() {
//todo after KT-1873 the name might be returned to 'last'
test fun lastElement() {
val data = arrayList("foo", "bar")
assertEquals("bar", data.last())
assertEquals(25, arrayList(15, 19, 20, 25).last())
......@@ -331,10 +332,9 @@ class CollectionTest {
test fun lastException() {
//todo(svtk)
// fails { arrayList<Int>().last() }
// fails { linkedList<String>().last() }
// fails { hashSet<Char>().last() }
fails { arrayList<Int>().last() }
fails { linkedList<String>().last() }
fails { hashSet<Char>().last() }
}
test fun subscript() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册