From 1cc7ab6b8d7bdd847f4c688f916bc219a4aa98d9 Mon Sep 17 00:00:00 2001 From: Alexander Zolotov Date: Tue, 26 Jun 2012 00:15:27 +0400 Subject: [PATCH] Fix function List.reverse(). - fix tests names --- libraries/stdlib/test/CollectionTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/stdlib/test/CollectionTest.kt b/libraries/stdlib/test/CollectionTest.kt index 3e1f06c1a89..e8bf63c717c 100644 --- a/libraries/stdlib/test/CollectionTest.kt +++ b/libraries/stdlib/test/CollectionTest.kt @@ -325,13 +325,13 @@ class CollectionTest { assertEquals(arrayList("bar", "foo"), rev) } - test fun reverseFunctionShouldReturnSortedCopyForList() { + test fun reverseFunctionShouldReturnReversedCopyForList() { val list : List = arrayList(2, 3, 1) expect(arrayList(1, 3, 2)) { list.reverse() } expect(arrayList(2, 3, 1)) { list } } - test fun reverseFunctionShouldReturnSortedCopyForIterable() { + test fun reverseFunctionShouldReturnReversedCopyForIterable() { val iterable : java.lang.Iterable = arrayList(2, 3, 1) expect(arrayList(1, 3, 2)) { iterable.reverse() } expect(arrayList(2, 3, 1)) { iterable }