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
e0a4f9ba76
Rewrite precondition samples and refactor precondition tests
...
Precondition tests are shared for JS target.
Samples do not use assertFailsWith as expression, as it's going to be converted as a special template.
2017-04-21 21:13:25 +03:00
Zalim Bashorov
c112542935
KJS: remove unnecessary test runners (mostly for stdlib)
...
Stdlib tests run separately via gradle.
2017-04-20 16:19:05 +03:00
Ilya Gorbunov
2db8714fc5
Fix null values being treated as missing in 'put' method of a specialized string-keyed map
2017-04-19 18:32:47 +03: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
87c055cc61
Fix progression iterators to respect the Iterator contract.
...
#KT-16923 Fixed
2017-03-20 20:13:54 +03:00
Ilya Gorbunov
e5a28311bc
Fix infinite sequence being terminated prematurely when being iterated without calling hasNext
...
#KT-16922 Fixed
2017-03-20 20:13:54 +03:00
Ilya Gorbunov
31da36bedf
Minor: Add test cases for adding and removing null value to/from set.
...
Fix unused value in removeAll test.
2017-02-08 20:13:22 +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
Roman Elizarov
a1571657f3
Updated test to experimental package
2017-01-27 23:24:13 +03:00
Roman Elizarov
8dc318dd92
Fixed KT-15963 (coroutines machinery should not use equals on results)
2017-01-27 23:24:13 +03:00
Denis Zharkov
246946bc18
Move buildSequence/buildIterator to kotlin.coroutines.experimental
2017-01-27 23:24:13 +03:00
Denis Zharkov
8fa8ba7055
Move coroutine-related runtime parts to kotlin.coroutines.experimental package
...
#KT-15975 Fixed
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
288e0b3c7e
Allow to use Regex matches CharSequence and CharSequence matches Regex in infix form
...
#KT-14279
2017-01-25 21:31:42 +03:00
Ilya Gorbunov
a603de8bd7
Ensure string to number conversion fails on empty and blank inputs.
...
#KT-4497
2017-01-24 07:22:58 +03:00
Ilya Gorbunov
4e5e14c9a0
Provide string-to-number conversions in JS and common stdlib.
...
Relates to #KT-8286
#KT-4497 Fixed
2017-01-24 07:20:57 +03:00
Roman Elizarov
25739a08ea
CoroutineContext Key and Element are now inside CoroutineContext interface itself (just like Map.Entry)
...
ContinuationInterceptor companion object is named Key
CoroutineContext.Element property for key is named just key
AbstractCoroutineContextElement implements all of CoroutineContext.Element, including key
2017-01-16 14:33:02 +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
2dfcb490a5
Fix CoroutineContext tests, update public API dump
2017-01-14 13:24:53 +03:00
Roman Elizarov
8d6a913cee
CoroutineContext and ContinuationInterceptor (instead of dispatcher)
2017-01-14 13:24:53 +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
897e9658ac
Do not run total order tests on JS
2017-01-11 14:45:19 +03:00
Ilya Gorbunov
74331f8eaa
Add NaN propagation and total ordering tests.
2017-01-11 14:45:16 +03:00
Ilya Gorbunov
6041a7d6c8
Add tests for normal cases of maxOf/minOf
2017-01-11 14:45:14 +03:00
Ilya Gorbunov
844c68286a
Refactor: replace Math.min with minOf in common code.
...
Add temporary import of kotlin.comparisons where required.
2017-01-11 14:42:36 +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
c43e4f6682
Uncomment some assertions for overflow behavior that now can pass in JS
2016-12-23 18:14:32 +03:00
Ilya Gorbunov
bc944961f1
Use internal published-api function to validate radix in string-number conversion functions.
...
#KT-8286
2016-12-14 17:20:44 +03:00
Mikhail Zarechenskiy
c15c00677e
Add operator 'rem' as extension to BigDecimal
...
Deprecate 'mod' operator
2016-12-14 15:29:00 +03:00
Mikhail Zarechenskiy
5a829809d9
Add operator 'rem' as extension to BigInteger
...
#KT-14650 Fixed
Note that after this change behaviour of '%' on BigInteger is changed,
now it works like a proper remainder
2016-12-14 15:29:00 +03:00
Alexey Andreev
0f813d5cfe
JS: fix compiling stdlib tests in JS
2016-12-09 12:04:32 +03:00
Ilya Gorbunov
8ec2a2e6fe
Add NaN-propagation in coerceIn(ClosedComparableRange<Double>)
2016-12-08 22:13:00 +03:00
Ilya Gorbunov
ea77673dde
Reimplement coerceIn to range with new range functions: lessThanOrEquals.
2016-12-08 20:50:26 +03:00
Ilya Gorbunov
d60fc7d9a8
Introduce ClosedComparableRange interface which inherits ClosedRange to provide special comparison operation for double and float.
2016-12-08 20:50:11 +03:00
Ilya Gorbunov
5773594412
Reimplement ClosedRange.contains extensions to call interface contains method.
2016-12-08 20:50:07 +03:00