Commit Graph

262 Commits

Author SHA1 Message Date
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 a2a93a3830 Fix String.dropWhile & String.takeWhile 2014-06-10 11:11:01 +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 692f60b1d6 Uncommented code in data class test for equality and toString 2014-06-10 11:11:00 +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
Andrey Breslav 5536f4da07 Test data generated from both files separated in 717f03f474 2014-04-24 16:22:43 +04:00
Ilya Ryzhenkov 717f03f474 Split tests into platform independent and JVM parts to run subset of tests in JS 2014-04-24 12:59:43 +04:00
Ilya Ryzhenkov a825b13a4b Restore tests on streams, add test for filterNotNull 2014-04-24 12:59:42 +04:00
Ilya Ryzhenkov cbc0e6404e Support String in generators, and migrate generated functions. 2014-04-24 12:59:41 +04:00
Amal Samally a3ad79e5d9 KT-4614: Add String.format(Locale, args) 2014-04-24 12:59:40 +04:00
Ilya Ryzhenkov 1db035a0aa Slice functions for arrays and lists. 2014-04-24 12:59:40 +04:00
Zalim Bashorov 96d5a1d0e6 JS backend: test both versions of Map(Complex and Primitive) 2014-04-02 17:50:40 +04:00
Zalim Bashorov 336ff43b26 JS backend: - test both versions of Set(Complex and Primitive)
- added size in PrimitiveSet
 - fixed contains in PrimitiveSet

 #KT-4796 fixed
2014-04-02 17:50: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
Ilya Ryzhenkov fb7034a472 Clean TODOs and commented code which works. 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
Zalim Bashorov 33360c2528 Dropped some TODOs
#KT-2564 Obsolete. Looks like, it's fixed in dcddd04.
2014-03-11 20:03:58 +04:00
Alexander Udalov f63cbcfd6a Delete wrong toString() extension, fix StringJVMTest 2014-03-02 19:55:28 +04:00
Alexander Udalov 11cc7f46f4 Remove "Iterator.iterator()" intrinsic, add stdlib function 2014-03-02 19:55:24 +04:00
Alexander Udalov 3dcd85bdb4 Add toString() to Any, fix all tests
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00
Zalim Bashorov 529d7374b8 Stdlib: enabled test List::withIndices. 2014-02-03 13:31:23 +04:00
Zalim Bashorov edb930fd76 JS stdlib: added missed tests for Set and fixed HashSet implementations. Implemented Set::iterator, AbstractCollection::removeAll, AbstractCollection::retainAll, AbstractCollection::containsAll.
#KT-4390 fixed
2014-02-03 13:31:23 +04:00
Zalim Bashorov ceab4347ec JS stdlib: added missed tests for Map and fix HashMap implementation. 2014-02-03 13:31:23 +04:00
Christian Laakmann 9b3d357371 added extension methods MutableCollection#addAll(Iterable) and MutableCollection#addAll(Iterator) (#KT-4202 fixed) 2014-01-24 18:12:45 +04:00
Pavel V. Talanov 7db53106fd Stdlib: fix signature of Reader.forEachLine() function
#KT-4242 Fixed
2014-01-09 21:07:23 +04:00
Jon Renner 6781231411 KT-4347 add Array extension indexOf to stdlib 2013-12-30 14:42:56 +04:00
Natalia Ukhorskaya 4329c42e3f Make unary minus and unary plus return int for byte and short 2013-12-23 13:46:00 +04:00
Michael Zehender 6546d7a1e7 #KT-2341 Fixed 2013-12-12 23:34:08 +04:00
Evgeny Gerashchenko e80af77c31 Added max() and min() for CharArrays. 2013-12-06 20:35:31 +04:00
Natalia Ukhorskaya 6331dd2308 Fix toFloat in stdlib 2013-12-05 15:21:57 +04:00
Natalia Ukhorskaya d63f6843c8 Merge ConstantExpressionEvaluator and CompileTimeConstantResolver 2013-12-05 15:21:50 +04:00
nik ac6dc9fa54 standard library: 'maxBy' and 'minBy' functions added (#KT-4267 fixed) 2013-12-02 18:24:24 +04:00
nik 45e9211943 standard library: added isEmpty/isNotEmpty functions for primitive arrays 2013-12-02 18:24:24 +04:00
nik bf36eb07e9 standard library: 'max' and 'min' functions added (KT-3714, KT-3843, KT-3126) 2013-11-27 23:09:30 +04:00
nik cde36adbdc standard library: 'sum' function added (KT-3714, KT-3843, KT-3126) 2013-11-27 12:42:40 +04:00
Alexey Sedunov 9839c2b0b6 Stdlib: Add iteration over unary function, implement iterator zip and skip 2013-11-20 01:44:13 +04:00
Maxim Shafirov 73db26f5f3 Clean up deprecation 2013-11-07 13:03:03 +04:00
Mohammad Shamsi 0c447c81ca KT-4153 Fixed. 2013-11-05 18:37:13 +08:00
Mohammad Shamsi d3eb23f233 KT-4139 FIXED
KT-4139 add "map" and "mapTo" methods in to "String" class.
2013-10-27 23:35:09 +08:00
Sergey Mashkov 391c892a21 String.replaceAll variant that handles each match using closure 2013-10-07 19:52:13 +04:00
Evgeny Gerashchenko 2ae1a2c81b Added copyToArray intrinsic method.
#KT-3352 fixed
2013-10-01 15:11:30 +04:00
develar e786e62fd7 JS backend: fixed variable capturing in extension functions.
Fixed ClosureTest.testWrappedVariableInExtensionFun IteratorsTest.foldReducesTheFirstNElements and IteratorsTest.takeExtractsTheFirstNElements. All tests passed.

(cherry picked from commit f8f1895)
2013-08-09 14:29:55 +04:00
develar 4e07c60541 JS backend: fixed AbstractCollection#equals.
Disabled test IteratorsTest::takeExtractsTheFirstNElements
2013-08-09 14:29:53 +04:00
Nikolay Krasko 2520f11bdc KT-3823 Standard sort function requires MutableIterable by no reason
#KT-3823 Fixed
2013-07-30 21:06:16 +04:00
develar 12d19dd9d8 JS backend: added wraping to object the local vars which captured in closure.
Moved local functions and function literals to class/namespace definition.

(cherry picked from commit 36c954b)
2013-07-18 16:04:42 +04:00