Commit Graph

29 Commits

Author SHA1 Message Date
Ilya Gorbunov a1d8e9d633 Provide dropLast and takeLastWhile methods. Optimize special cases of drop/take/dropLast/takeLast (when n is equal to zero or size of collection). 2015-06-04 16:32:25 +03:00
Ilya Gorbunov 9b17220baa Provide dropLastWhile for Arrays, Lists and Strings. 2015-06-04 16:32:21 +03:00
Ilya Gorbunov 4fd1b46e91 Refactor JS tests: unified package name, test JS specific map implementations only in JS.
Add required files to build StdLibTestToJSTest.
Remove tests StdLibMapJsTest and StdLibSetJsTest because they are tested elsewhere.
2015-05-24 05:07:01 +03:00
Ilya Gorbunov c95ba4da8e Tests for specialized primitive implementations of sets and maps in JS. 2015-05-24 05:06:51 +03:00
Ilya Gorbunov ebe578dbc5 Tests to ensure the behavior of the specialized empty List, Set, Map implementations is same as of non-specialized ones. 2015-05-24 05:03:46 +03:00
Ilya Gorbunov b1255cf95b 2nd stage of split semantics change: remove deprecated String.split(String), rename splitBy back to split. 2015-05-09 01:11:32 +03:00
Ilya Gorbunov 5dacb5a745 Provide average() method for iterables, sequences and arrays.
#KT-3843 Fixed
2015-04-22 18:21:29 +03:00
Ilya Gorbunov 899a01e8c2 Rename sequence() extension to asSequence() 2015-04-22 17:57:20 +03:00
Ilya Gorbunov be11394adf Rename copyToArray() to toTypedArray(). 2015-04-21 21:27:28 +03:00
Ilya Gorbunov 5eb3c0bb5e Rename *array() factory methods to *arrayOf(). 2015-04-21 21:27:26 +03:00
Ilya Gorbunov 043b27bfe5 Make more generic signature for reduce and reduceRight methods.
Fixes #KT-2287
2015-04-15 17:34:08 +03:00
Ilya Gorbunov b3165ac771 Rename split method to splitBy and revive old split implementation interpreting parameter as regex to provide the migration path. 2015-03-31 02:24:50 +03:00
Ilya Ryzhenkov e448f40756 Rename Stream<T> to Sequence<T> and provide migration path via deprecated types and functions. 2015-03-12 22:56:43 +03:00
Ilya Ryzhenkov 9b04f57a25 Collection tests: format and fix usages of deprecated symbols. 2015-01-20 22:37:15 +03:00
Ilya Ryzhenkov 846014b37f Add missing sum() on Streams. 2014-12-16 17:33:27 +03:00
Ilya Ryzhenkov fa0542b801 Clean size/length/first/head/empty properties and functions. 2014-12-16 17:33:21 +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
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
Ilya Ryzhenkov 65da4cb2fb Generalize zip(..) to merge(..) { t1, t2 -> ... }, add merge for maps. 2014-06-24 23:49:16 +04:00
Ilya Ryzhenkov f471f7901c Migrate to using join* functions instead of deprecated. 2014-06-10 11:11:02 +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
Ilya Ryzhenkov 266f6ad81a Clean TODOs, add custom Iterable implementation test. 2014-03-19 20:25:15 +04:00
Ilya Ryzhenkov e37d8174c3 New stdlib generators 2014-03-19 20:25:11 +04:00