Commit Graph

43 Commits

Author SHA1 Message Date
Andrey Breslav 92ef1c9417 Some 200 warnings eliminated from stdlib code 2012-10-19 16:17:51 +04:00
Alex Tkachman 804e3769ff remove some unnecessary !! from stdlib 2012-09-26 19:19:44 +02:00
James Strachan be44702145 fixes KT-2091 allowing fold() and foldRight() to take different types of initial value and return the same typed result 2012-09-21 16:31:04 +01:00
Evgeny Gerashchenko 8e1323bb43 Replaced sure() invocations with '!!' operator in libraries written on Kotlin. 2012-09-17 18:00:21 +04:00
James Strachan ba01576c41 added a partition helper method to partition a collection into a collection of matching items and not matching items 2012-09-12 15:55:34 +01:00
James Strachan bcec41c779 allow nullable expressions to be used for lazily creating new items if there is not a value in the Map 2012-09-12 14:56:28 +01:00
Svetlana Isakova a3194e9a46 removed unnecessary import jet.Iterator 2012-09-05 18:55:16 +04:00
James Strachan 1c763dabe2 uncommented test now KT-1718 is fixed 2012-08-17 10:47:29 +01:00
James Strachan ecbd4daefb avoid unnecessary verbose type parameters now the type inferencer is better 2012-08-17 09:44:52 +01:00
Svetlana Isakova ca6d7e643e use kotlin Iterable/Iterator
instead of java Iterable/Iterator
in Kotlin code in library
2012-08-16 18:39:23 +04:00
Evgeny Gerashchenko ab5505eed2 Using equals to compare ranges in CollectionTest. 2012-07-31 22:15:07 +04:00
Evgeny Gerashchenko 5667e76f4f Added Int.indices extension property. 2012-07-31 22:15:07 +04:00
James Strachan e8ddeca248 got more test cases working in JS in a web browser; not sure why lots fail in selenium in JUnit 2012-07-19 21:35:22 +01:00
Alexander Zolotov e2400e1b0e Merge branch 'master' into fix-reverse-and-sort-for-lists
Conflicts:
	libraries/stdlib/test/CollectionTest.kt
2012-06-26 01:49:35 +04:00
Alexander Zolotov 34f485e45a Fix functions List<T>.sort() and add sort functions for java.lang.Iterables.
See Problem 3 at https://github.com/JetBrains/kotlin/pull/78#issuecomment-6533534
2012-06-26 00:36:24 +04:00
Alexander Zolotov 1cc7ab6b8d Fix function List<T>.reverse().
- fix tests names
2012-06-26 00:15:27 +04:00
Alexander Zolotov 1e301843f7 Fix function List<T>.reverse().
For now all iterables (including List) return reversed *copy* of collection.
See Problem 3 at https://github.com/JetBrains/kotlin/pull/78#issuecomment-6533534
2012-06-26 00:13:26 +04:00
Alexander Zolotov 019962b654 Add sortBy method for interables 2012-06-25 23:40:18 +04:00
Alexander Zolotov 6b13f35206 Implement reduce and reduceRight functions
- move arrays reduce tests
2012-06-16 03:43:55 +04:00
Alexander Zolotov 0043454a06 Implement reduce and reduceRight functions 2012-06-16 02:37:48 +04:00
Alexander Zolotov ae00b0bb15 Fix foldRight implementation for iterables 2012-06-15 13:22:47 +04:00
James Strachan 939f0e9085 added drop(n) and dropWhile(predicates) for KT-2067 - also tail() now returns the usual idea of tail() - namely everything but the head - rather than just the last element. Finally added more test sample code to the kdoc 2012-05-23 09:35:16 +01:00
Svetlana Isakova 028be6a696 stdlib change (after KT-1873 might be restored) 2012-05-01 14:58:08 +04:00
Svetlana Isakova bd3d90499c stdlib tests temporary revert 2012-04-30 15:44:23 +04:00
Svetlana Isakova b5bf4a626c Reverted explicitly specifying visibility modifier while override 2012-04-18 19:02:24 +04:00
James Strachan 7500808e11 #KT-1788 Fixed - added standard collection APIs to the various kinds of Array and removed the few old hand-crafted versions of these methods 2012-04-17 14:05:32 +01:00
James Strachan c3f1e38c67 avoid default arguments on groupBy() by having groupByTo() if the caller wishes to specify the Map to group into. Also tidied up the sample code in CollectionTest 2012-04-12 12:35:13 +01:00
James Strachan 3ed819bfe1 improved the docs and test cases 2012-04-03 19:05:49 +01:00
James Strachan e56b823c63 Merge branch 'master' of github.com:JetBrains/kotlin 2012-04-03 17:56:49 +01:00
James Strachan 5155b858d7 improved the docs and test cases 2012-04-03 17:55:14 +01:00
Svetlana Isakova 9b2eeb076e KT-1717 Don't make member visibility inherit when it is not declared explicitly
#KT-1717 Fixed
2012-04-03 19:26:28 +04:00
James Strachan 5df7258708 added a test case for KT-1718 2012-04-03 16:16:08 +01:00
James Strachan f022b61794 #KT-39 Fixed with eager and lazy implementations 2012-04-03 15:36:34 +01:00
James Strachan 153b668d3e #KT-1391 Fixed 2012-04-03 10:40:21 +01:00
James Strachan 28b0792191 initial psike of #KT-39 on collections (iterators required too), though hit #KT-1710 2012-04-03 09:20:11 +01:00
James Strachan 1d342978d0 #KT-1675 Fixed, renaming join() -> makeString() and adding an appendString() which reduces the possible number of appendables being created 2012-04-02 20:01:24 +01:00
James Strachan 133afa8327 link more documentation to test cases and filled out the test cases a little 2012-03-27 12:26:20 +01:00
James Strachan 31fd665913 added more links to test code inside the kdoc and tidied up the tests a little so they look a bit nicer and more self contained in the documentation 2012-03-27 11:33:05 +01:00
James Strachan 5b252aaf39 added sample comparator code and tidied up some test cases & converted them to the cleaner JUnit 4 style 2012-03-26 11:43:25 +01:00
Evgeny Goldin 9caca33ac6 testFilterIntoLinkedList test uncommented; Maven dependencies update 2012-03-21 15:12:00 +01:00
Evgeny Goldin 669c7ec326 Libraries:
- "kotlin-maven-plugin" is pulled up to the main POM
 - "testFilterIntoLinkedList" test commented out
 - stdlib - including "kotlin-runtime" respects "localKotlin" profile
2012-03-20 21:54:43 +01:00
Mark S. Petrovic 4f2866ff5b Add sortedSet and unit test 2012-03-17 19:00:06 -07:00
James Strachan 7ef65c0099 moved the stdlib tests into the same directory as the stdlib, so it works a bit better with maven support in IDEA 2012-03-14 16:14:14 +00:00