Ilya Gorbunov
f10ea03173
Provide extension to get mutable iterator from the mutable map
...
#KT-18992 Fixed
2017-07-24 21:02:15 +03:00
Ilya Gorbunov
ab70307cc0
Minor: refactor iterable tests
2017-05-05 18:01:02 +03:00
Marek Langiewicz
934b0b8c38
Fix List.takeLast for lists without RandomAccess
2017-05-03 16:38:15 +02:00
Ilya Gorbunov
6ae19e03d5
Clean warnings and refactor stdlib tests.
...
Merge RangeJVMTest into RangeTest.
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
4a5d8534c1
Fix array iterators to adhere to Iterator contract
...
#KT-17453 Fixed
Change expected exceptions in tests.
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
6af986cfdd
Refactor serialization tests and move them to test/io package
...
Add tests for singleton deserializing.
2017-04-18 12:46:52 +03:00
Anton Bannykh
7d4c26c0c1
JS: fix maven SeleniumTest
2017-03-28 21:23:21 +03:00
Anton Bannykh
9b34e21619
JS: fixed <Type>Array.iterator methods; added -Xtypedarray compiler key
...
The <Type>Array.iterator used to lack next<Type>() method (KT-16626).
The -Xtypedarray compiler key enables translation of primitive arrays
to TypedArrays, and primitive array`is`-checks (KT-15358, KT-14007,
KT-14614, KT-16056).
2017-03-27 23:09:34 +03:00
Ilya Gorbunov
33f3106157
Do not use Math in common code.
2017-01-30 19:44:51 +03:00
Anton Bannykh
77aa685496
JS: char boxing
2017-01-30 16:31:44 +03:00
Denis Zharkov
246946bc18
Move buildSequence/buildIterator to kotlin.coroutines.experimental
2017-01-27 23:24:13 +03:00
Ilya Gorbunov
01f53d0173
Return NaN as an average of an empty collection.
...
#KT-15399 Fixed
2017-01-27 14:53:33 +03:00
Ilya Gorbunov
2e0209395a
Restore Map.minus(key/keys) and Map.minusAssign(key/keys) operators.
...
#KT-13353
2017-01-25 22:08:46 +03:00
Ilya Gorbunov
ffb183a2f3
Move a bit of bytecode out of next()
2017-01-14 20:14:05 +03:00
Ilya Gorbunov
141ad43039
Introduce buildSequence and buildIterator functions based on coroutines.
2017-01-14 20:14:01 +03:00
Ilya Gorbunov
80f2efb625
joinTo/joinToString: Do not call toString on elements that are already CharSequence or Char.
...
#KT-15557
2017-01-13 19:49:57 +03:00
Ilya Gorbunov
cdfb72ab76
Provide protected toArray implementation in AbstractCollection.
...
Relates to #KT-13898
2017-01-13 19:38:28 +03:00
Ilya Gorbunov
6273ab5d43
Hold back eachSumOf for a while: fixups.
...
Remove unneeded import.
2017-01-11 20:04:00 +03:00
Ilya Gorbunov
4816474d70
Hold back eachSumOf for a while.
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
04a0f0a036
Rename Grouping.elementIterator to sourceIterator
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
d73744f1c0
Tests for group-and-fold operations
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
5db75c993b
Introduce array-like list instantiation functions.
...
#KT-14935 Fixed
2016-12-30 20:00:45 +03:00
Ilya Gorbunov
822e58ad83
Map.getOrImplicitDefault is exposed public as Map.getValue
...
#KT-11851
2016-12-29 07:49:27 +03:00
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