Ilya Gorbunov
c4b18d8fb8
Special case of slice for int ranges, sliceArray returning array.
...
#KT-8711
2015-09-02 20:22:38 +03:00
Ilya Gorbunov
faa26cdb25
Introduce operations on Arrays returning Arrays: reversedArray, sortedArray.
...
#KT-8711
2015-09-02 20:22:27 +03:00
Ilya Gorbunov
b3073dbd2d
Provide lazy implementation with an external object to synchronize on.
2015-09-02 15:49:53 +03:00
Ilya Gorbunov
184978e3cb
Remove usages from tests
2015-09-02 15:49:47 +03:00
Denis Zharkov
e8f91e596c
Adjust test data after fixes about generic nullability
2015-08-28 18:50:26 +03:00
Ilya Gorbunov
83f9ee2737
Concurrent getOrPut for concurrent maps.
...
#KT-5800 Fixed
2015-08-28 17:51:48 +03:00
Ilya Gorbunov
84d3d42e05
Replace deprecated reverse method usages.
2015-08-27 11:45:44 +03:00
Ilya Gorbunov
ca798d8d71
Rename reverse to reversed.
...
#KT-8171
2015-08-27 11:45:30 +03:00
Ilya Gorbunov
b8badd59ba
Introduce reversed extension for Comparator.
2015-08-27 00:10:11 +03:00
Ilya Gorbunov
7d33599fc2
Parameterless nullsFirst and nullsLast and misc comparator combining functions.
2015-08-27 00:09:44 +03:00
Ilya Gorbunov
5a4e598ba7
Another approach for sorting nulls.
2015-08-27 00:09:31 +03:00
Ilya Gorbunov
d49a1973e5
Change null handling in compareValuesBy(a, b, functions). Provide nullsFirst() and nullsLast() to extend Comparator<T> to Comparator<T?>.
2015-08-27 00:09:17 +03:00
Ilya Gorbunov
63110dcdf8
Remove StdLibArraysTest and include collections/ArraysTest.kt into StdLibTestToJSTest smoke tests instead.
...
Move helper methods, so they are available in JS semantics tests.
2015-08-27 00:09:04 +03:00
Ilya Gorbunov
521e0b679d
Rename sortedDescendingBy to sortedByDescending
2015-08-27 00:08:50 +03:00
Ilya Gorbunov
002c3e850f
Tests for sorting methods.
2015-08-27 00:08:37 +03:00
Ilya Gorbunov
6f71e54268
In-place array sorting in JS.
2015-08-27 00:07:56 +03:00
Sergey Mashkov
84ef068f5d
#KT-8708 refactor trimIndent, trimMargin, replaceIndent, replaceIndentByMargin, prependIndent
2015-08-12 18:45:10 +03:00
Sergey Mashkov
7afa40590d
KT-8708 Function to strip leading whitespace (stripMargin, trimMargin, stripIndent?)
2015-08-12 18:45:10 +03:00
Ilya Gorbunov
15d69499d0
Stop matching after the end of the input sequence was reached.
...
#KT-8763 Fixed
2015-08-11 05:11:32 +03:00
Sergey Mashkov
0e25a5ea82
JS: arrayToString should use toString() instead of direct join to handle nulls properly
...
#KT-8663 Fixed
2015-07-31 14:28:30 +03:00
Ilya Gorbunov
81cbbad1e5
Add test comparing behavior of a reversed list and a reversed view on a list.
2015-07-31 14:28:29 +03:00
Sergey Mashkov
8a0c752f99
KT-4844 Support asReversed() for lists
2015-07-31 14:28:29 +03:00
Ilya Gorbunov
34afb450d8
List binarySearch and binarySearchBy methods and tests.
...
#KT-5444 Fixed
#KT-8217 Fixed
2015-07-24 04:34:56 +03:00
Ilya Gorbunov
d831509cee
Provide listOfNotNull method.
2015-07-24 04:34:31 +03:00
Ilya Gorbunov
12e3542bce
Provide toTypedArray method for primitive arrays.
2015-07-24 04:33:55 +03:00
Ilya Gorbunov
f57c207ed2
Introduce NotImplementedError instead of UnsupportedOperationException to throw from TODO function.
...
#KT-8153
2015-07-24 04:32:52 +03:00
Ilya Gorbunov
f2716a973c
TODO as a function. Add an overload with a string reason.
...
#KT-8153 Fixed
2015-07-24 04:30:10 +03:00
Ilya Gorbunov
bfb116c0b2
Provide TODO as a substitution for not yet implemented method body.
...
#KT-8153
2015-07-24 04:29:31 +03:00
Ilya Gorbunov
da3ec891d0
Provide unzip method for Iterables, Arrays and Sequences of pairs.
...
#KT-5793 Fixed
2015-07-24 04:28:57 +03:00
Ilya Gorbunov
b7fbb60db4
Generate contains function for all combinations of primitive numeric ranges and arguments.
...
#KT-6361
2015-07-24 04:14:06 +03:00
Ilya Gorbunov
8892192e9c
Generate openRange tests for compiler.
...
#KT-4665
2015-07-24 04:13:53 +03:00
Ilya Gorbunov
71f3e3049a
Provide until function to construct integer ranges with an end being excluded from range.
...
#KT-4665 Fixed
2015-07-24 04:13:41 +03:00
Ilya Gorbunov
690a536734
Tests for minus operation for collections, sets, iterables and sequences.
2015-07-17 10:53:31 +03:00
Ilya Gorbunov
048a3ebcc1
Implement plus for sequence as operand and refactor plus tests.
2015-07-17 10:53:05 +03:00
Ilya Gorbunov
0ee960da50
Change removeAll extension implementation to match the contract of member removeAll.
...
Add retainAll for sequences.
2015-07-17 10:52:51 +03:00
Ilya Gorbunov
2c28c5a8e8
Define plusAssign operator for mutable collections.
...
#KT-4020 Fixed
2015-07-17 10:52:25 +03:00
Ilya Gorbunov
dd945f4d1a
Tests for plus on collections, sets, sequences.
2015-07-17 10:52:12 +03:00
Ilya Gorbunov
0f340c8f62
Make primitive array tests run both in JVM and JS
2015-07-17 10:52:00 +03:00
Ilya Gorbunov
6507cf391b
Tests for array's copyOf and plus.
2015-07-17 10:51:49 +03:00
Ilya Gorbunov
7866184eb6
Array.plus — different implementations for JVM and JS.
...
Array.copyOf, copyOfRange available in JS.
2015-07-17 10:51:09 +03:00
Ilya Gorbunov
8b325e8a30
Make ByteArray.inputStream a method, not a property.
...
#KT-8360 Fixed
2015-07-15 17:48:56 +03:00
Ilya Gorbunov
4de5dd9aeb
Drop deprecated FunctionalList, FunctionalQueue.
...
Remove dependency on FunctionalList from tests.
2015-07-15 17:45:56 +03:00
Ilya Gorbunov
d1a12aa2a7
plus, plusAssign, minus, minusAssign for all possible parameter types for Maps.
...
#KT-6594 Fixed
2015-07-15 17:12:45 +03:00
Mikhail Glukhikh
609d696202
Annotations have now retention of "RUNTIME" by default. Java retention is generated as given by kotlin annotation. Annotation rendering changed.
...
Annotation arguments with default values are rendered as ... if renderDefaultAnnotationArguments is true.
Tests: java retention does not taken into account by Descriptor comparator.
Java retentinon changed to kotlin retention in some tests + one new test with java retention added.
More accurate tests for intentions in byte code (visibility controlled).
2015-07-14 16:25:01 +03:00
Ilya Gorbunov
f440d97e04
Remove unnecessary Char.toChar from tests.
2015-07-06 17:57:35 +03:00
Ilya Gorbunov
005a0a1eb6
Eliminate deprecated char operation usages in stdlib
2015-07-04 04:45:47 +03:00
Ilya Gorbunov
9618a3542f
Provide getOrElse and getOrNull methods for indexed collections.
...
Breaking: elementAtOrElse is no longer inlined for Iterables and Sequences.
#KT-6952
2015-07-03 16:38:08 +03:00
Ilya Gorbunov
64379947fd
Do not allow using getOrPut on concurrent maps.
...
#KT-5800 In Progress
2015-07-01 22:33:58 +03:00
Ilya Gorbunov
a47325cc30
Provide getOrSet method for ThreadLocal<T: Any>
...
#KT-7927 Fixed
2015-07-01 22:30:17 +03:00
Ilya Gorbunov
9dbc4e4eef
Provide another type of callback to the ObservableProperty which is called after the property value has been changed.
...
#KT-6866 Fixed
2015-07-01 22:23:11 +03:00