Ilya Gorbunov
923effe11d
Change FilePathComponents parsing for file with empty name to enhance finding relative path between relative paths.
2015-12-14 05:15:55 +03:00
Ilya Gorbunov
6301c707cd
Ensure resolveTo fails as expected.
...
Change UNC paths not to be misinterpreted on *nix.
2015-12-14 05:15:53 +03:00
Ilya Gorbunov
515d2cd3e7
FileTreeWalk.filter was dropped, use treeFilter otherwise filtering result becomes different.
...
Refactor walking tests.
2015-12-14 05:15:50 +03:00
Ilya Gorbunov
27551a8399
Make some io test classes non-nested as it's not supported by runners.
2015-12-14 05:15:48 +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
Alexander Udalov
db2521ee67
Rework TestlibTest, use JUnit console runner instead of manual suite
...
The problem with the manually created suite was that it was created in setUp()
and so a lot of the hard work (compilation, test case lookup) was happening in
setUp(). If any exception is thrown in setUp(), tearDown() is not called,
leaving the application (~9000+ subsequent tests) in the inconsistent state.
Support JUnit 4 tests via JUnit4TestAdapter. Previously only a small number of
test classes were actually run because this test was looking only for JUnit 3
testcases.
Delete FilesTest#relativePath because it was testing a deprecated function
and was failing if run from the project root
2015-11-30 18:58:00 +03:00
Ilya Gorbunov
661e288362
Introduce 'step' property in progressions instead of 'increment'
2015-11-30 14:12:05 +03:00
Ilya Gorbunov
c7d08ea599
Remove *Raw method usages from tests
2015-11-28 07:20:25 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Yan Zhulanow
a3ff3ffc45
Fix tests: "Placing function type parameters after the function name" error
2015-11-27 15:51:11 +03:00
Ilya Gorbunov
ca4bdd23e0
Provide flatten for sequence of iterables.
...
#KT-9977
2015-11-26 00:45:15 +03:00
Ilya Gorbunov
4181142400
Deprecate sequenceOf(Progression).
2015-11-26 00:45:15 +03:00
Ilya Gorbunov
8440c196d1
GeneratorSequence: do not get first value, until it's requested by iterator, allow initialValue to be null and return EmptySequence in this case.
...
#KT-9153 Fixed
2015-11-26 00:45:15 +03:00
Ilya Gorbunov
229504f42d
Byte iterator only available for buffered input streams,
...
InputStream.buffered() returns BufferedInputStream.
2015-11-25 18:35:03 +03:00
Ilya Gorbunov
542ab6ae34
Deprecate String.toCharList to use toList instead.
2015-11-25 18:34:58 +03:00
Ilya Gorbunov
b253ace198
Test different return results of collection mutation operations.
2015-11-25 17:18:59 +03:00
Ilya Gorbunov
f17316f4b4
Provide removeAll and retainAll with predicate for MutableIterables and MutableList.
...
#KT-8760 Fixed
2015-11-25 17:18:58 +03:00
Ilya Gorbunov
5aa415c609
MutableMap.iterator() returns MutableIterator.
2015-11-21 07:09:07 +03:00
Ilya Gorbunov
2ed277a863
Add upperbound constraint Comparable<T> to toSortedSet() and sortedMapOf()
...
Provide an overload of toSortedSet() with Comparator<in T> parameter
#KT-10115 Fixed
2015-11-21 00:54:33 +03:00
Ilya Gorbunov
b61bef324d
Make Char.category and directionality properties instead of functions.
...
Provide contains(Char) operator for CharCategory.
2015-11-21 00:54:30 +03:00
Ilya Gorbunov
775755dfac
Introduce String.toCharArray() instead of String.getChars()
...
Make special method conversion for java.lang.String.getChars() in J2K
2015-11-21 00:54:29 +03:00
Ilya Gorbunov
9d24f1d1cf
Delegates.mapVal and mapVar preserve type of the receiver to when calling default value lambda.
2015-11-21 00:54:22 +03:00
Ilya Gorbunov
c3190bbae3
Migrate type parameter list syntax.
2015-11-21 00:54:15 +03:00
Ilya Gorbunov
794819cea2
StdLib cleanup: make calls non-infix
2015-11-21 00:54:10 +03:00
Ilya Gorbunov
88e48380af
StdLib cleanup, deprecated symbol usage: Throwable.getMessage
2015-11-21 00:54:09 +03:00
Ilya Gorbunov
dadcdb5771
StdLib cleanup, deprecated symbol usage: List and Map members
2015-11-21 00:54:08 +03:00
Ilya Gorbunov
838109c302
StdLib cleanup, deprecated symbol usage: replace end with endInclusive
2015-11-21 00:54:06 +03:00
Ilya Gorbunov
07654eb82b
StdLib cleanup, deprecated symbol usage: size() and length()
2015-11-21 00:54:05 +03:00
Mikhail Glukhikh
4e44466cf9
Exposed visibility deprecation warnings made errors + relevant test fixes
2015-11-20 15:21:01 +03:00
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