Sergey Mashkov
7aae2bd452
kotlin-test: Remove javaClass as is in runtime now
2015-12-18 22:16:04 +03:00
Sergey Mashkov
a5b098c4a7
kotlin.test: Rename jvm module to junit
2015-12-18 22:16:04 +03:00
Sergey Mashkov
149ce70ce2
Move testing from stdlib to js.stdlib
2015-12-18 22:16:04 +03:00
Sergey Mashkov
1867abbbe7
Add kotlin.test library
2015-12-18 22:16:04 +03:00
Sergey Mashkov
dd36ef5712
Remove kunit
2015-12-18 22:16:04 +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
b5e637bed5
Rename toMap with selector and transform to toMapBy
2015-12-17 22:50:44 +03:00
Ilya Gorbunov
544bc9a70c
Introduce toMap with key-value pair selector.
...
#KT-6657
2015-12-17 22:50:43 +03:00
Ilya Gorbunov
2966420d24
Harden deprecation level for synchronized helper functions.
...
Make migration helper classes deprecated-hidden, although it doesn't affect anything.
2015-12-17 22:48:13 +03:00
Mikhail Glukhikh
233e8e58e8
Code cleanup: get rid of unnecessary !! / as, fake warning comments and issues
2015-12-15 12:00:58 +03:00
Ilya Gorbunov
4ffd60cf52
Correct deprecation messages.
2015-12-14 21:07:33 +03:00
Ilya Gorbunov
43ce8222fc
Soften deprecation level to ease migrations.
2015-12-14 21:05:13 +03:00
Ilya Gorbunov
9d753f24b7
Do not create regex to split path by directory separator char.
2015-12-14 06:31:44 +03:00
Ilya Gorbunov
a4f82a2dc4
Sensible behavior for File.startsWith and File.endsWith
2015-12-14 06:10:26 +03:00
Ilya Gorbunov
d2e22dc794
Fix tests on linux.
...
Add tests for File.startsWith
2015-12-14 06:10:24 +03:00
Ilya Gorbunov
645c78e2f4
Do not use assert in test, use assertTrue or assertEquals
2015-12-14 06:10:22 +03:00
Ilya Gorbunov
cb71e05c51
Deprecate File.directory, root, rootName as properties with unclear behavior.
2015-12-14 06:10:21 +03:00
Ilya Gorbunov
7c9b53c75c
Do not convert separatorsToSystem in file path extensions.
...
Do not require network host in network share root to contain dot.
File.root now is always non-null to be consistent with File.toComponents().root.
Introduce invariantSeparatorsPath property.
Deprecate relativeTo to make it return File later. Introduce toRelativeString instead.
Introduce relativeToOrNull and relativeToOrSelf extensions.
2015-12-14 06:10:18 +03:00
Ilya Gorbunov
52eb9e4276
Refactor FilePathComponents: rename properties, deprecate constructor, rename filePathComponents extension.
2015-12-14 06:09:55 +03:00
Ilya Gorbunov
8deefd56db
Rename FileTreeWalk public parameters and builder methods.
...
Directory filtering now is performed in newly introduced onEnter predicate.
2015-12-14 05:16:06 +03:00
Ilya Gorbunov
e24dbcefb6
Move all mutable state from FileTreeWalk to its iterator implementation, allowing this sequence to be iterated several times.
...
Introduce SingleFileState for single file walks.
Do not check isDirectory in DirectoryState constructor unless assertions are enabled.
2015-12-14 05:16:04 +03:00
Ilya Gorbunov
061803d7b1
Compare root of FilePathComponents according to case-sensitivity rules of current file system.
2015-12-14 05:16:02 +03:00
Ilya Gorbunov
4f2887df64
FileTreeWalk tests: do not remove failed directory from stack as leave is also called on failed dirs.
2015-12-14 05:16:01 +03:00
Ilya Gorbunov
162b152133
Improve File.relativeTo handling relative paths. Paths are normalized before calculating relative path. "x".relativeTo("../y") now is considered to have incompatible roots.
2015-12-14 05:15:59 +03:00
Ilya Gorbunov
9f5a972816
Improve resolve and resolveSibling for relative paths.
2015-12-14 05:15:57 +03:00
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
33967a09f6
Unify minBy and maxBy for Maps with other families.
2015-12-14 04:56:47 +03:00
Ilya Gorbunov
33b366b9b9
Relax upper bound of T for minBy and maxBy to be nullable.
...
Swap type parameters of minBy and maxBy.
#KT-10099 Fixed
2015-12-14 04:56:45 +03:00
Ilya Gorbunov
f509937037
Move array constructors to builtins module back to kotlin package.
2015-12-14 04:29:11 +03:00
Ilya Gorbunov
5aff07561d
Move jvm annotations and class mapping intrinsics to runtime.jvm module to kotlin.jvm package.
...
Make annotationClass to be a property.
Deprecate with error javaClass property on KClass<T>
2015-12-14 03:51:07 +03:00
Ilya Gorbunov
feff5b2327
Stdlib generators: change values back to function.
2015-12-14 03:49:59 +03:00
Ilya Gorbunov
2d85c437cd
Final moves: BigInteger and BigDecimal operations
2015-12-14 03:49:58 +03:00
Ilya Gorbunov
0ab33ab075
Final moves: map delegating accessors and timing utils, provide deprecated methods in the old place
2015-12-14 03:49:56 +03:00
Ilya Gorbunov
597f2c0a8c
Final moves: map delegating accessors and timing utils
2015-12-14 03:49:55 +03:00
Ilya Gorbunov
16fbdcf107
For migration: provide deprecated classes inheriting multifile facade classes moved out of kotlin package.
2015-12-14 03:49:53 +03:00
Ilya Gorbunov
ae3135c770
For migration: Make an option "Xmultifile-facades-open" for compiler to generate open multifile facade classes.
2015-12-14 03:49:51 +03:00
Ilya Gorbunov
594d981094
Provide deprecated AbstractIterator in the old package kotlin.support.
2015-12-14 03:49:49 +03:00
Ilya Gorbunov
91b920f18e
Move IndexedValue, IndexingIterable and IndexingIterator back to kotlin package
2015-12-14 03:49:48 +03:00
Ilya Gorbunov
871c5c66b4
Move code between packages (JS)
2015-12-14 03:49:46 +03:00
Ilya Gorbunov
dd2ae15531
Move code between packages.
2015-12-14 03:49:45 +03:00
Ilya Gorbunov
81e7826568
Move generated code between packages.
2015-12-14 03:49:43 +03:00
Alexander Udalov
477e25ae2f
Remove Intrinsic annotation from *arrayOf functions
2015-12-14 03:49:41 +03:00
Dmitry Petrov
0fe74a8b43
COMMA_IN_WHEN_CONDITION_WITHOUT_ARGUMENT is an ERROR now.
...
Migrated code.
Updated test data in IDE tests.
Dropped whenWithRangeTestsAndMultiConditions.kt:
"Introduce subject" is not applicable to 'when' with ||-ed conditions.
2015-12-11 10:43:16 +03:00
Yan Zhulanow
ac9a1350c2
Application package from manifest file has a higher priority than the applicationId value in build.gradle (KT-10320)
2015-12-10 19:38:38 +03:00
Ilya Gorbunov
dc70c0d31e
Move sequence interface definition to a separate file.
...
Merge SequnceJVM content into Sequences.
2015-12-05 02:40:27 +03:00