Commit Graph

237 Commits

Author SHA1 Message Date
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
Natalia.Ukhorskaya a37be3c205 Add tests for observable/vetoable properties 2013-06-27 11:00:48 +04:00
Zalim Bashorov 9d1e319f0f JS backend: implemented PrimitiveHashMap#putAll. 2013-06-22 01:34:38 +04:00
Alexander Udalov ee80e0b8ca Fix loops over progressions near to MAX_VALUE/MIN_VALUE
#KT-492 Fixed

For Byte, Char and Short ranges, promote the type of the loop parameter to int
to avoid overflows. For Int and Long ranges at the end of the loop over a
progression we now check if the new (incremented) value of the loop parameter
is greater than the old value iff increment > 0
2013-06-20 16:03:00 +04:00
Alexander Udalov 33d6347876 Fix loop over a range literal up to MAX_VALUE
#KT-492 In Progress

For Byte, Char and Short explicit casting from Int is removed -- loop parameter
is already stored in an Int anyway. For Int and Long comparison "i < end" at
the beginning of the loop is replaced to "i != end" at the end of the loop + a
special check for an empty loop
2013-06-20 16:02:59 +04:00
Svetlana Isakova fc0077cf9b removed explicit type arguments
from delegation tests where possible
2013-06-06 17:20:11 +04:00
Maxim Shafirov 58914cdf33 Delegate properties stdlib, take 2. 2013-05-30 19:06:45 +04:00
Natalia.Ukhorskaya 97c33b02ab Add library classes for delegated properties 2013-05-21 13:21:53 +04:00
Zemian Deng c3b46341d7 #KT-3533 Fixed - not to null in encoding name parameter in String, Bytes, and File. 2013-04-24 16:18:33 +04:00
Mohammad Shamsi 296bda2e3a Fixed #KT-3379 jet.String.trimLeading and trimTrailing default whitespace trim 2013-04-19 01:10:51 +04:00
Ekaterina Sosa a34a6b71c1 KT-3376 Added appendText and appendBytes functions to kotlin.io.File
#KT-3375 fixed
2013-04-09 00:56:44 +04:00
Mikhael Bogdanov 16aa4153e4 KT-3457 fix: added missed spread operator and receiver became format template 2013-04-01 14:50:20 +04:00
Svetlana Isakova 362770c9b1 don't generate two 'flatMap' methods(*) for Iterator
* with the same erased signature
 #KT-3373 Fixed
2013-03-25 17:34:22 +04:00
Evgeny Gerashchenko 5ccbce6de6 Got rid of "tuple" word all over the code. 2013-03-22 16:38:25 +04:00
Evgeny Gerashchenko e8cf905ed0 Fixed typo. 2013-03-22 16:38:25 +04:00
Evgeny Gerashchenko 655f9e01a2 Renamed tuples from other code. 2013-03-22 16:37:16 +04:00
Zalim Bashorov 7143393172 Added support bitwise operations in js translator 2013-03-19 16:31:02 +04:00
Zalim Bashorov 9c2d5a8ddb Fixed translating primitive arrays to js. 2013-03-19 16:31:02 +04:00
Zalim Bashorov 322d35ac2f Added some tests for JS implementation of HashMap
Fixed JS implementation of HashMap#putAll
2013-03-12 21:09:33 +04:00
Svetlana Isakova fe82ea5464 reverted: adopt to broken inference 2013-03-07 13:11:21 +04:00
Zalim Bashorov 220682afe2 fixed mapping sort and max functions from java.util.Collections 2013-03-06 19:16:14 +04:00
Zalim Bashorov dd7d584478 Added some tests for JS implementation of HashMap#values() (#KT-3035) 2013-03-06 19:16:14 +04:00
Evgeny Gerashchenko c93df9fd9d Got rid of deprecated method. 2013-03-04 18:54:06 +04:00
Evgeny Gerashchenko e2a13da325 Disabled part of IoTest.listFiles on Windows. 2013-03-04 18:54:05 +04:00
Evgeny Gerashchenko 0e85fdd2cf KT-3290 File.recurse NPE
#KT-3290 fixed
2013-03-04 17:33:58 +04:00
Evgeny Gerashchenko bfd80e7855 Reformatted. 2013-03-04 17:33:58 +04:00