Ilya Gorbunov
dc57d69085
Improve onEach templates.
...
Add new functions to reference API.
Add tests for onEach
#KT-8220
2016-11-30 16:46:56 +03:00
Ilya Gorbunov
6a70761783
Minor: normalize '@Test' annotation casing in all tests.
2016-11-21 18:20:33 +03:00
Ilya Gorbunov
50cd620f92
Remove java.util.* imports from common code.
2016-11-21 18:20:33 +03:00
Ilya Gorbunov
fae5c88f22
Remove java.util references from the common code
2016-11-16 18:47:42 +03:00
Ilya Gorbunov
dceec89572
JS: Array.toString is const, Array.contentToString is shallow, Array.contentDeepToString is deep and self-reference aware
...
#KT-13582
2016-11-08 17:23:45 +03:00
Ilya Gorbunov
f3da656d6e
contentEquals, contentHashCode, contentToString: Add js implementation and tests
...
#KT-13582
2016-11-08 17:23:45 +03:00
Ilya Gorbunov
49ea0f5984
Relax generic variance in Array.flatten
2016-10-31 22:05:38 +03:00
Ilya Gorbunov
8d76617094
Merge ReversedViews tests in one file as they can all run now in JS.
...
Make SynchronizedLazyValTest jvm-only.
2016-10-26 17:47:15 +03:00
Ilya Gorbunov
badbcd08de
Annotate explicitly stdlib tests, which must be excluded from JS stdlib tests with @JvmVersion, do not use file naming convention, use preprocessor instead.
2016-10-26 17:47:15 +03:00
Ilya Gorbunov
0ac461927c
Minor: Fix TODOs in stdlib tests
2016-10-18 17:13:17 +03:00
Ilya Gorbunov
75069143c7
Rewrite ArrayList, AbstractList, AbstractCollection in kotlin.
...
AbstractList is imported from GWT.
#KT-12386
2016-09-24 07:08:21 +03:00
Ilya Gorbunov
2c1d90c79d
Improve test coverage of map operations
2016-08-10 21:52:24 +03:00
Ilya Gorbunov
fb99919c59
Accept maps out-projected by key where possible.
2016-08-10 21:52:24 +03:00
Ilya Gorbunov
e35a214eaf
Review fixes: special case of toMap for singleton map.
...
#KT-9108
2016-08-09 21:49:57 +03:00
Ilya Gorbunov
efc8f2c88a
Provide extensions to copy maps.
...
#KT-9108
2016-08-09 21:49:57 +03:00
Ilya Gorbunov
c5a208f3eb
Rearrange stdlib unit tests across packages.
...
Rearrange JS stdlib unit tests.
2016-06-18 16:50:32 +03:00
Ilya Gorbunov
15dcd3d9f9
Add tests for deserialization of collections persisted with kotlin 1.0
2016-05-12 21:20:54 +03:00
Ilya Gorbunov
f4f82656f7
Use list iterators instead of indexed access in operations on lists taking a lambda.
...
Related to #KT-9607
2016-04-29 22:21:19 +03:00
Ilya Gorbunov
4b533b297e
reified assertFailsWith available in kotlin-test for JS
...
#KT-11346
2016-04-27 18:22:20 +03:00
Ilya Gorbunov
409094f0f7
Make stdlib functions dependent on reified is checks available in JS.
...
#KT-11346 Fixed
2016-04-27 18:22:20 +03:00
Ilya Gorbunov
d5d19f5595
Make Map.plus accept Map out-projected by key type as either operand (receiver or parameter).
...
#KT-11301 Fixed
2016-03-31 17:20:58 +03:00
Ilya Gorbunov
ab68b49a70
Introduce RandomAccess to JS.
...
Make EmptyList support RandomAccess.
#KT-10794
2016-03-30 21:06:18 +03:00
Ilya Gorbunov
3c35395cf7
Minor: refactor some tests to use nested classes.
2016-02-21 04:18:11 +03:00
Ilya Gorbunov
24edbc36df
Create at most one wrapper sequence for adjacent drop/take operations on sequences.
...
Based on PR #814 by Sargun Vohra
#KT-10821 Fixed
2016-02-14 16:46:46 +03:00
Ilya Gorbunov
4f1418bb72
Verify index expectations for reduceIndexed/reduceRightIndexed
2016-01-31 02:45:05 +03:00
Ilya Gorbunov
1357c77d0b
Minor: verify exception type of failed fold/reduce
2016-01-31 02:45:04 +03:00
Gabriel Borges
d58efff974
Add foldIndexed and reduceIndexed groups of functions
...
- foldIndexed, foldRightIndexed, reduceIndexed and reduceRightIndexed have been added, in line with filterIndexed etc.;
- Test cases added appropriately for the new functions.
2016-01-31 02:45:02 +03:00
Ilya Gorbunov
d46501e11b
Make all remaining deprecations to be errors.
2016-01-27 18:34:32 +03:00
Ilya Gorbunov
8d02467e6d
Introduce plusElement and minusElement to disambiguate situations like List<List<T>> + List<T>
...
#KT-9992 Fixed
2016-01-27 00:00:01 +03:00
Ilya Gorbunov
23080f78f7
Map.getOrPut: treat nulls as missing values.
2016-01-26 11:49:18 +03:00
Ilya Gorbunov
a49db730a9
Map.getOrElse: treat nulls as missing values.
2016-01-26 11:49:17 +03:00
Ilya Gorbunov
90a239e74c
Provide toMutableList as a replacement for toArrayList.
2016-01-26 11:49:15 +03:00
Ilya Gorbunov
564155734b
Introduce associateTo and associateByTo with the destination MutableMap to fill.
2016-01-26 11:49:12 +03:00
Ilya Gorbunov
e41bf687d9
Deprecate toLinkedMap
2016-01-26 11:49:10 +03:00
Ilya Gorbunov
8224a4e186
Rename toMap and toMapBy to associate and associateBy
2016-01-26 11:49:03 +03:00
Ilya Gorbunov
7703252239
Provide groupBy and groupByTo with keySelector and valueTransform.
...
Rename parameters of groupBy, add type parameter for MutableMap to groupByTo.
2016-01-25 21:15:56 +03:00
Ilya Gorbunov
300a4be060
Deprecate Map.minus and minusAssign operators.
...
Disable tests failing in JS.
2016-01-22 01:13:33 +03:00
Ilya Gorbunov
7896e58afc
Rename sequence function to generateSequence
2016-01-22 01:13:31 +03:00
Ilya Gorbunov
67ef790abc
Move comparison related functions to kotlin.comparisons, update imports in stdlib.
2016-01-18 21:46:31 +03:00
Ilya Gorbunov
aafd79078f
Provide mutableSetOf and mutableMapOf
...
#KT-9663 Fixed
2016-01-18 21:46:29 +03:00
Ilya Gorbunov
fe8ba4d356
Provide mutableListOf.
...
Deprecate linkedListOf.
#KT-9663
2016-01-18 21:46:28 +03:00
Ilya Gorbunov
19a4f65fd1
Cleanup in libraries
2016-01-17 15:52:12 +03:00
Ilya Gorbunov
b99e1111f6
Do not use out projection for Array where appropriate.
2016-01-14 18:30:40 +03:00
Mikhail Glukhikh
99a32b93fb
Implemented missed checks for local functions #KT-10449 Fixed
...
Relevant code/test fixes
2015-12-23 18:22:32 +03:00
Ilya Gorbunov
03816373b3
Primitive array constructor-like functions with init lambda.
...
#KT-8831
Update testData and resolve ambiguity in newArray test
2015-12-18 17:54:09 +03:00
Ilya Gorbunov
188119aa83
Prepare to treat keys mapped to null same way as missing keys in Map extensions: getOrElse, getOrPut, getOrImplicitDefault.
2015-12-18 15:24:03 +03:00
Ilya Gorbunov
055c71e8d0
Provide minWith and maxWith to find maximum and minimum values according to the given comparator.
...
#KT-9002 Fixed
2015-12-18 00:00:52 +03:00
Ilya Gorbunov
544bc9a70c
Introduce toMap with key-value pair selector.
...
#KT-6657
2015-12-17 22:50:43 +03:00
Ilya Gorbunov
dd2ae15531
Move code between packages.
2015-12-14 03:49:45 +03:00
Stanislav Erokhin
bc49825f55
Fix testLib test
2015-12-01 15:38:01 +03:00