Ilya Gorbunov
3639afafce
Deprecated with ERROR preconditions with eager message.
2015-11-11 19:00:03 +03:00
Ilya Gorbunov
be9b14545f
Drop deprecations and tighten up left ones.
2015-11-11 18:59:53 +03:00
Ilya Gorbunov
5b484f1e05
Make emptyMap upperbound to be Any? rather than Any.
...
#KT-9963
2015-11-11 17:14:41 +03:00
Ilya Gorbunov
f7135dfe50
Do not override default AbstractList iterator() implementation for primitiveArray.asList wrappers.
...
#KT-9927 Fixed
2015-11-11 16:41:39 +03:00
Ilya Gorbunov
af9020a010
Update Range and Progression built-in implementations in js library.
...
No need to define special method mapping for js ranges/progressions.
Support progression companion objects' function fromClosedRange as intrinsic
2015-11-11 03:53:51 +03:00
Ilya Gorbunov
6bac3e1986
Drop Ranges, Progressions, ProgressionIterators for Double and Float.
...
Undeprecate generic Comparable.rangeTo, but return private implementation instead.
Undeprecate contains and coerceIn for generic ranges.
2015-11-11 03:53:47 +03:00
Ilya Gorbunov
4d2f9b82da
reversed() behavior changed for progressions. Stepped progression behavior changes: 'end' property is now deprecated, use 'last' instead.
2015-11-11 03:53:45 +03:00
Ilya Gorbunov
5ebb3d20e8
Change internal implementation of progression: use first, last instead of start, end
...
Keep the end value as it was passed to progression constructor.
Deprecate primary progression constructor and introduce factory method in companion object.
2015-11-11 03:53:40 +03:00
Ilya Gorbunov
25da037868
Update range iteration tests and regenerate test data.
2015-11-11 03:53:37 +03:00
Ilya Gorbunov
9323f61eaf
Introduce T.addTo(MutableCollection<T>), mapNotNull and mapIndexedNotNull extensions.
...
#KT-4410 Fixed
2015-11-11 03:12:17 +03:00
Ilya Gorbunov
008a8059cf
Introduce filterIndexed
...
#KT-9502 Fixed
2015-11-11 02:42:52 +03:00
Ilya Gorbunov
70fdc379ef
Drop deprecated Delegates.lazy and blockingLazy and ObservableProperty constructor-like function
2015-11-06 01:12:07 +03:00
Sergey Mashkov
29973d714e
Remove DOM utilities, put temporary to JS to keep compatibility
2015-11-05 14:41:28 +01:00
Ilya Gorbunov
1a0c2e2cf6
In-place sorting.
...
#KT-9034
2015-11-05 09:04:31 +03:00
Ilya Gorbunov
5e9b7b9e60
Collections.sort without comparator now uses natural order.
...
#KT-9771 Fixed
2015-11-05 09:03:30 +03:00
Ilya Gorbunov
2b676e08bc
Introduce naturalOrder<T> and reverseOrder<T> comparators.
2015-11-05 09:03:05 +03:00
Ilya Gorbunov
83fef68876
Add more cases to array in-place reversing test.
...
Add array of objects case to all reversing tests.
2015-11-05 09:03:03 +03:00
Ilya Gorbunov
4fc54a12b8
In-place reversing.
...
#KT-9034
2015-11-05 09:02:58 +03:00
Ilya Gorbunov
1400bdc09a
Do not allow removeSurrounding remove overlapping prefix and suffix.
2015-11-04 22:19:59 +03:00
Ilya Gorbunov
05fd2b012a
Provide overloads both for Strings and CharSequences of filter, filterNot, reversed and partition
2015-11-04 22:19:57 +03:00
Ilya Gorbunov
62d6bcaa6d
Provide overloads both for Strings and CharSequences of removePrefix, removeSuffix, removeSurronding, trim* and pad*, replaceRange & removeRange
2015-11-04 22:19:55 +03:00
Ilya Gorbunov
8c16fad8b1
Make more string tests cross-platform.
2015-11-04 22:19:48 +03:00
Ilya Gorbunov
d021a324aa
Test CharSequence extension methods both for String and StringBuilder
2015-11-04 22:19:43 +03:00
Daniel Rothmaler
67229401c6
Add set operator to make the work with StringBuilder more list-like.
...
Make StringBuilder.set jvm-only.
Move jvm-specific test.
2015-11-04 22:19:33 +03:00
Ilya Gorbunov
05615dd48b
Introduce String.toByte()
...
#KT-8833 Fixed
2015-11-04 22:19:22 +03:00
Ilya Gorbunov
9bbe0d67ff
Do not treat directory with copied test sources for js library as source root, as it confuses debugger under certain circumstances.
...
Remove duplicated test.
2015-11-04 22:19:20 +03:00
Ilya Gorbunov
65a98d6968
Temporary drop mapNotNull and mapNotNullTo.
...
Disable mapNotNull tests
#KT-4410
2015-11-04 00:05:45 +03:00
Ilya Gorbunov
579ce8091c
Cleanup tests, specify type where it's ambiguous.
2015-10-27 21:48:27 +03:00
Ilya Gorbunov
0b74698c16
@OnlyInputTypes for assertEquals and expect
2015-10-27 21:48:24 +03:00
Ilya Gorbunov
69dc6701cc
Deprecate Double, Float and Comparable range implementations.
2015-10-19 15:37:41 +03:00
Ilya Gorbunov
e2cf8a919c
Fix contains usages in stdlib tests
2015-10-16 23:38:30 +03:00
Ilya Gorbunov
59f88cfb52
Ensure vararg copy behavior for specific case of arrayListOf in JS.
2015-10-16 18:43:41 +03:00
Alexander Udalov
556a169a5d
Update stdlib usages of PropertyMetadata to KProperty<*>
2015-10-15 00:05:31 +03:00
Ilya Gorbunov
43bb9347c6
Rename Regex.hasMatch to containsMatchIn, and add corresponding contains function to CharSequence.
2015-10-14 22:49:50 +03:00
Ilya Gorbunov
d1d865aa0f
Rename methods in Regex. Add matchEntire method to match entire string against regex.
2015-10-14 22:49:48 +03:00
Ilya Gorbunov
d860f335a3
JS: Make StringBuilder implement CharSequence and introduce secondary constructors.
2015-10-14 22:49:47 +03:00
Ilya Gorbunov
935024db4e
Fix with hack bridge codegen for indexOf and lastIndexOf methods. More sophisticated solution is required.
2015-10-14 22:49:40 +03:00
Denis Zharkov
f0e3fd617d
Adjust testData to CharSequence.length transformation
2015-10-14 20:39:35 +03:00
Denis Zharkov
cb562e7ea5
Adjust JS backend to CharSequence.length transformation
2015-10-14 20:39:32 +03:00
Alexey Tsvetkov
eae644c365
Remove isArrayOf reference from common JVM/JS test
2015-10-14 20:06:52 +03:00
Alexey Tsvetkov
62c25c0370
Replace is Array<T> with .isArrayOf<T>()
2015-10-14 18:36:53 +03:00
Ilya Gorbunov
cac7bfc80b
Clarify some type in tests.
2015-10-14 18:26:46 +03:00
Ilya Gorbunov
93c73500d7
Do not allow to delegate readonly property to a map with incompatible value type.
...
Infer type of delegated readonly property from the map value type.
2015-10-14 18:22:30 +03:00
Ilya Gorbunov
af0a59dd02
Deprecate StringBuilder { } function, and introduce buildString { } instead.
...
#KT-7295 Fixed
2015-10-14 18:19:57 +03:00
Ilya Gorbunov
6d7cc0671e
Allow equals with ignoreCase parameter to take nullable Strings both as a receiver and a parameter.
...
#KT-9188
2015-10-14 18:19:56 +03:00
Ilya Gorbunov
6d2f9cc669
Remove obsolete iterator tests
2015-10-13 22:31:15 +03:00
Ilya Gorbunov
c58d21a1e7
Remove obsolete test for KT-1131
2015-10-13 22:31:14 +03:00
Dmitry Jemerov
1523d5bcbf
removing static type assertions work in progress
2015-10-12 11:11:23 +02:00
Denis Zharkov
3733d0e84f
Adjust stdlib to remove/charAt transformation
2015-10-11 19:59:25 +03:00
Ilya Gorbunov
e09c0ae2ff
Rename toMap { selector } to toMapBy.
...
#KT-6657
2015-10-08 17:48:47 +03:00