Commit Graph

52 Commits

Author SHA1 Message Date
Ilya Ryzhenkov bfeb21afb0 stdlib: stream() for Map #KT-6547 Fixed 2015-03-10 11:21:41 +03:00
Valery Kharitonov 8873be22d5 Implemented asList() method for arrays. #KT-1313 Fixed 2015-03-10 11:21:40 +03:00
Valery Kharitonov c8094e7587 Implemented indexOfFirst/Last(predicate). #KT-6577 Fixed 2015-03-10 11:21:40 +03:00
Valery Kharitonov 38a4f86db2 Implemented asIterable method for arrays. #KT-1313 Fixed 2015-03-10 11:21:39 +03:00
Laszlo Hornyak 3954215b50 Add support for + and - operators in immutable maps #KT-6594 Fixed 2015-03-10 11:21:38 +03:00
Ilya Ryzhenkov 1a67e35739 Add more tests to cover stdlib 2015-03-10 11:21:38 +03:00
Dmitry Jemerov 2cc291efdb Standard library documentation continued. 2015-03-03 11:20:30 +01:00
Ilya Ryzhenkov 95d4accda7 stdlib: add flatten() 2015-01-20 22:39:24 +03:00
Ilya Ryzhenkov 1d4591d99c stdlib: add sumBy(function) 2015-01-20 22:39:23 +03:00
Ilya Ryzhenkov 4ee64d7283 Covering stdlib with tests. 2015-01-20 22:37:16 +03:00
Ilya Ryzhenkov 9b04f57a25 Collection tests: format and fix usages of deprecated symbols. 2015-01-20 22:37:15 +03:00
Ilya Ryzhenkov 4cd2ba1e30 Fix Array<out> variance in stdlib #KT-6482 Fixed 2014-12-23 20:00:01 +03:00
Ilya Ryzhenkov f4b96a0a1a Add mapIndexed() function for common case withIndex().map{} #KT-3153 Fixed 2014-12-16 17:33:27 +03:00
Ilya Ryzhenkov 846014b37f Add missing sum() on Streams. 2014-12-16 17:33:27 +03:00
Ilya Ryzhenkov be717f48f8 Stop using deprecated APIs 2014-12-16 17:33:24 +03:00
Ilya Ryzhenkov fbbb7eced1 Collect deprecated code, remove unused private ImmutableArrayList 2014-12-16 17:33:22 +03:00
Ilya Ryzhenkov 31fb24d390 Sort collections/map APIs, improve empty implementations. 2014-12-16 17:33:21 +03:00
Ilya Ryzhenkov fa0542b801 Clean size/length/first/head/empty properties and functions. 2014-12-16 17:33:21 +03:00
Ilya Ryzhenkov 828ba385ea Cleanup ordering, improve API 2014-12-16 17:33:20 +03:00
Ilya Ryzhenkov e890c2ee0d Deprecate withIndicies(), introduce optimized and fixed withIndex and forEachIndexed() 2014-12-16 17:33:20 +03:00
Denis Zharkov e768b4e285 stdlib: Introduced filterIsInstance version
without class-literal as a parameter
2014-11-13 20:56:10 +03:00
Denis Zharkov da5164acd8 stdlib: Introduced Array<T>?.orEmpty() in JVM-stdlib 2014-11-13 20:56:10 +03:00
Ilya Ryzhenkov 8fc550f3b1 Fix split invocation in js tests. 2014-11-06 17:13:17 +03:00
Ilya Ryzhenkov 2e154b73de Support componentN for arrays and lists #KT-5538 Fixed 2014-11-06 16:45:57 +03:00
Ilya Ryzhenkov 24ee79aa2d Replace ArrayList<Any>() with stdlib_emptyListClass() and fix test. #KT-6013 Fixed 2014-11-06 16:45:56 +03:00
Michael Nedzelsky edac2dd3bd JS backend: tests for KT-2468 2014-10-14 16:45:54 +04:00
Zalim Bashorov f202ad9f98 Stdlib: run all stdlib tests with JS backend(as possible). 2014-10-13 21:25:56 +04:00
Ilya Ryzhenkov 3e4cc87c87 Add more tests on streams and move relevant code from old iterators tests. 2014-09-26 01:33:51 +04:00
Evgeny Gerashchenko 90b065e82b += tests fix 2014-07-29 12:06:36 +04:00
Ilya Ryzhenkov 3980664049 Tests for map functions. 2014-07-16 21:35:12 +04:00
Zalim Bashorov 9b081fd254 Minor: assert -> assertTrue 2014-07-16 21:35:10 +04:00
Ilya Ryzhenkov 4ea62071b5 Split tests into platform-independent and JVM. 2014-07-16 21:35:09 +04:00
Ilya Ryzhenkov a9da7cfeea Use LinkedHashMap everywhere to preserve order. 2014-07-16 21:35:09 +04:00
Ilya Ryzhenkov cb17f0c635 Remove map iteration from ListSpecificTest - JS fails, but it is irrelevant to test. 2014-07-16 21:35:08 +04:00
Ilya Ryzhenkov 3491c88793 Recover test for mutable List variable and move it to ListSpecificTests 2014-07-16 21:35:07 +04:00
Ilya Ryzhenkov 2b6fcc0b7c singleOrNull methods should never throw exception #KT-5424 Fixed 2014-07-16 21:10:32 +04:00
Ilya Ryzhenkov ca7c3d7999 Set operations (distinct, union, intersect, subtract) 2014-06-24 23:49:16 +04:00
Ilya Ryzhenkov 65da4cb2fb Generalize zip(..) to merge(..) { t1, t2 -> ... }, add merge for maps. 2014-06-24 23:49:16 +04:00
Ilya Ryzhenkov f94b79fac3 Minor. Update reference to issue. 2014-06-24 23:49:15 +04:00
Ilya Ryzhenkov 4e4d0b448c Minor. Cleanup test. 2014-06-24 23:49:15 +04:00
Ilya Ryzhenkov ab45439256 Convert iterable of pairs to map, improve generic toMap(mutableMap) function #KT-4166 Fixed 2014-06-10 11:11:03 +04:00
Ilya Ryzhenkov f471f7901c Migrate to using join* functions instead of deprecated. 2014-06-10 11:11:02 +04:00
Ilya Ryzhenkov 5b73fba2d4 Support "key in map" using extension contains() function. #KT-3607 Fixed 2014-06-10 11:11:01 +04:00
Ilya Ryzhenkov 178ae83e8d sort and binarySearch methods now have correct default toIndex parameter #KT-4963 Fixed 2014-06-10 11:11:00 +04:00
Alexander Udalov 9c04c9ea38 Fix stdlib tests on JVM
#KT-5064 Open
2014-05-21 02:04:36 +04:00
Alexander Udalov af3d56b44e Fix JVM type mapping of arrays of type variables
#KT-4262 Fixed
 #KT-5056 Fixed
2014-05-20 19:22:53 +04:00
Ilya Ryzhenkov a825b13a4b Restore tests on streams, add test for filterNotNull 2014-04-24 12:59:42 +04:00
Ilya Ryzhenkov 1db035a0aa Slice functions for arrays and lists. 2014-04-24 12:59:40 +04:00
Alexander Udalov e3fffe275b Fix implementation of Iterable<T>.take
#KT-4780 Fixed
2014-03-28 19:08:48 +04:00
Ilya Ryzhenkov 33415c2333 Uncomment test for TreeSet 2014-03-19 20:25:15 +04:00