Some sort tests had an order of equal objects in a sorted list
hardcoded. It caused failures because an approach to placing
equal objects differs in Kotlin JVM and Kotlin Native sort
implementations. With this patch we check if all objects in a list
are sorted istead of checking an exact order of them.
This patch makes toIndex parameter exclusive in sortArrayWith method
in order to make this method corresponding to the other ones (e.g.
copyOfRange, Array.sortWith extension etc).
It also improves the external sortBy test in order to use it with
different sort algorithms.
This patch copies Kotlin/JVM stdlib tests (libraries/stdlib/test)
excepting ones with explicit java dependencies. It also transforms
the tests to use them as box-tests.
* captured values are stored in corresponding fields before call to super constructor
* preserving the order of initializers
* tests
* refactoring
* - test fix
- workaround of IR bug
* refactoring
* review fix
* Add enumeration support.
* Enum classes lowering.
* merge fix
* merge fix
* used arrayOf from irModule
* changed lowering quant from body to file
* refactoring
* review fixes
* lowering for GET_OBJECT in enums
* enabled tests
* added tests
* moved tests to separate dir
* renamed test files
* moved phase up
* review fixes
* reformat