Abduqodiri Qurbonzoda
a369496aca
Throw IOOB on invalid index in JS StringBuilder.get to adhere contract
2019-03-15 17:40:31 +03:00
Abduqodiri Qurbonzoda
ba61695a45
Check for index-out-of-bound in elementAt function (KT-30051)
2019-03-12 21:39:09 +03:00
Abduqodiri Qurbonzoda
be6c2d8c7d
Implement min max minOf maxOf functions for unsigned types (KT-30035)
2019-03-08 23:34:36 +03:00
Abduqodiri Qurbonzoda
bf83f0e070
Implement contains extension functions for URanges (KT-26378)
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
cb587893c0
Implement sorting extension functions for UArrays
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
c42dbb34ca
Implement drop, take & filter extension functions for UArrays
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
abb275775e
Implement map, flatMap, zip & groupBy extension functions for UArrays
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
503264b996
Implement folding extension functions for UArrays
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
7695b5e575
Implement sum extension function for UArrays (KT-28779)
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
690e35f11a
Implement reduce, forEach, min & max extension functions for UArrays
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
fc85781bfc
Implement asList, slice & sliceArray extension functions for UArrays
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
114736c09b
Implement reversing extension functions for UArrays
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
299fac8e2d
Implement conversion from typed array and collection to UArrays
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
bbaabb90e4
Implement any, all, none, count & sumBy functions for UArrays
2019-03-08 23:34:33 +03:00
Abduqodiri Qurbonzoda
512d986006
Implement index-requesting extension functions for UArrays
...
Contains implementations of `indexOf`, `lastIndexOf`, `indexOfFirst`,
`indexOfLast`, `lastIndex` and `indices` extension functions.
2019-03-08 23:34:33 +03:00
Abduqodiri Qurbonzoda
6cd9858147
Specialize plus operator for UArrays (KT-28397)
2019-03-08 23:34:32 +03:00
Ilya Gorbunov
908009bf42
Improve double-to-ulong conversion tests
...
#KT-27108
2019-02-27 17:49:41 +03:00
Abduqodiri Qurbonzoda
c1b523ddef
Fix UArray.containsAll(Collection<Any?>)
2019-02-25 21:58:53 +03:00
Abduqodiri Qurbonzoda
60e83383ad
Add containsAll(Any?) check to CollectionBehaviors
2019-02-25 21:58:53 +03:00
Abduqodiri Qurbonzoda
1b6b44c805
Implement conversion between floating point numbers and unsigned integers
...
KT-27108
2019-02-25 21:58:03 +03:00
Ilya Gorbunov
56672c2564
Ensure stable sorting in MutableList.sort/sortWith
...
MutableList.sortWith now works correctly in JS_IR backend too
#KT-12473
2019-01-17 18:38:23 +03:00
Ilya Gorbunov
51eb21d44b
Provide stable sorting when JS engine sorting doesn't look stable
...
#KT-12473
2019-01-11 20:53:29 +03:00
Ilya Gorbunov
de1d15aa9a
Improve test coverage for contentEquals and minOf/maxOf
2019-01-11 17:41:52 +03:00
Ilya Gorbunov
30c769c19a
Avoid hitting max argument limit in String(chars)
...
Rewrite CharArray to String conversions to appending chars one by one.
Refine parameter checking in String(chars, offset, length) to adhere to
the common exception contract and document it.
#KT-29003
2019-01-10 23:35:52 +03:00
Ilya Gorbunov
673844a059
Move coroutine tests to other stdlib-jvm tests
2018-11-28 06:05:02 +03:00
Ilya Gorbunov
5f4e8bf4fb
Correct abstract mutable collections declarations in kotlin-stdlib-common
...
Add SinceKotlin(1.3) to the new and substantially changed common declarations
#KT-28091
2018-11-09 13:39:44 +03:00
Ilya Gorbunov
2b699f8f07
Add a test for CharSequence/String.regionMatches
2018-11-01 17:51:24 +03:00
Pavel Punegov
f543170998
Increase tolerance for Float asin test
2018-10-10 19:05:44 +03:00
Sergey Bogolepov
2f1f32bbf4
Replace random val in companion object with top level val
2018-10-10 19:04:55 +03:00
Alexander Udalov
55c8b35eee
Remove unneeded default imports in stdlib and tests
2018-10-01 13:39:02 +02:00
Ilya Gorbunov
974837654e
Remove workaround for complex default value in Array.copyInto
...
#KT-22818
2018-09-22 18:24:00 +03:00
Ilya Gorbunov
aac96c476a
Rename sequence and iterator builder functions and their scope class
...
This introduces new functions instead of the existing sequence builders:
- `sequence` instead of `buildSequence`
- `iterator` instead of `buildIterator`
- `SequenceScope` instead of `SequenceBuilder`
The old functions were deprecated with error and made inline-only, and `SequenceBuilder` has been
made a deprecated typealias to `SequenceScope`.
Move sequence builders to `SequencesKt` facade class.
Replace sequence builder usages in stdlib and samples.
#KT-26678
2018-09-16 23:30:35 +03:00
Ilya Gorbunov
6bfb5c59a3
Make ResultTest common
...
Use custom exception type to avoid platform differences in toString implementation.
2018-09-14 15:32:25 +03:00
Ilya Gorbunov
b1c2daf1fe
Stdlib: fix name shadowing and names of overridden method parameters
2018-09-14 15:32:25 +03:00
Ilya Gorbunov
bf4be12239
Stdlib: review and suppress warnings
2018-09-14 15:32:25 +03:00
Ilya Gorbunov
6786b9ece2
Stdlib tests: cleanup warnings
2018-09-14 15:32:08 +03:00
Ilya Gorbunov
928fe19801
Rename Random.next* parameters: remaining renames
...
- Correct docs after parameter renaming
- Rename parameters in Random inheritors
- Rename local variables
#KT-26596
2018-09-14 15:15:52 +03:00
kenji tomita
ffb83bbdf0
Rename Random.next* parameters from "origin, bound" to "from, until"
...
Rename Random test methods
#KT-26596
2018-09-14 15:15:52 +03:00
Ilya Gorbunov
2d356b89b5
Specialize contentDeepEquals/HashCode/ToString for arrays of unsigned types
...
#KT-26388
2018-09-13 06:10:10 +03:00
Ilya Gorbunov
1a8b258d86
Raise deprecation level for map delegation accessor according to #KT-18789
...
#KT-21703
2018-09-11 18:15:03 +03:00
Ilya Gorbunov
1eda3805ec
Introduce overloads to check for T? element contained in iterable range in a constant time
...
#KT-18483
2018-09-11 17:06:42 +03:00
Ilya Gorbunov
48add96e79
Deprecate mixed Int/FP contains operator for ranges
...
#KT-22423
2018-09-11 05:40:15 +03:00
Ilya Gorbunov
68c5c0f639
Introduce ConcurrentModificationException typealias in stdlib/jvm
...
This is required to provide the corresponding expect exception in stdlib/common.
Raise deprecation level for constructors declared in common but unsupported in JVM.
#KT-26598
2018-09-11 04:59:56 +03:00
Ilya Gorbunov
48fd8a63ee
Introduce Any?.hashCode() extension #KT-25039
2018-09-10 06:41:49 +03:00
Roman Elizarov
e2713501ce
Rename SuccessOrFailure to Result and hide Failure from ABI
...
* The members of Result are isSuccess, isFailure, exceptionOrNull, getOrNull
* The rest of API is implemented via inline-only extensions
* There are two internal functions to hide detailed mechanics of an internal
Result.Failure class: createFailure and throwOnFailure
* Result.toString is explicit: either Success(v) or Failure(x)
See KT-26538
2018-09-09 11:34:31 +03:00
Ilya Gorbunov
2821c357a1
Switch coroutine tests to release coroutines
2018-09-07 01:03:53 +03:00
Ilya Gorbunov
64996618b3
Suppress signed literals used as unsigned values in stdlib tests
2018-09-04 17:39:51 +03:00
Ilya Gorbunov
009980944b
Refine the exception type of EmptyRange.random()
...
Make it the same type as in case of an empty collection, so that
`emptyRange.random()` throws the same exception as `emptyRange.toList().random()`.
#KT-15539
2018-08-30 16:21:36 +03:00
Ilya Gorbunov
9c412ba436
Fix incorrect range transform in nextUInt/nextULong with range parameter
...
#KT-25570
2018-08-30 16:21:33 +03:00
Ilya Gorbunov
ea2c33a532
Extension random() to select random element from a collection
...
Fixes #KT-15539
2018-08-30 16:21:27 +03:00