Commit Graph

288 Commits

Author SHA1 Message Date
Evgeny Gerashchenko bfd80e7855 Reformatted. 2013-03-04 17:33:58 +04:00
Evgeny Gerashchenko b9e5704057 Updated test data and stdlib sources. 2013-02-13 18:08:37 +04:00
Evgeny Gerashchenko ccab19b2a1 Added range/progression tests with NaN ends. 2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko 021496c07d Prohibited NaN steps. 2013-02-13 18:08:36 +04:00
Evgeny Gerashchenko 5a4ae00970 Added range iteration test with non-literal ranges. 2013-02-13 18:08:33 +04:00
Maxim Shafirov 15446e98b8 Fix tests failing after stdlib generation refactoring 2013-02-13 12:41:12 +04:00
Maxim Shafirov 24d99eb33f adopt to broken inference 2013-02-13 12:41:12 +04:00
Maxim Shafirov 620aae28d0 Collections standard library is now generated from templates. 2013-02-13 12:41:12 +04:00
Maxim Shafirov 9f546f938d KT-3192 Drop kotlin.nullable package
#KT-3192 Fixed
2013-02-04 18:02:52 +04:00
Evgeny Gerashchenko 57e985b7f1 Generated codegen tests for ranges. 2013-01-30 19:24:15 +04:00
Evgeny Gerashchenko 58f37f38f4 Renamed NumberSequence to Progression. 2013-01-29 22:55:10 +04:00
Evgeny Gerashchenko dd4b508213 Adapted usage of failsWith(). 2013-01-29 22:55:10 +04:00
Evgeny Gerashchenko 2fd1430329 Tests for all kinds of ranges and sequences. 2013-01-29 22:55:09 +04:00
Evgeny Gerashchenko 6d41697af0 Added ComparableRange. 2013-01-29 22:55:07 +04:00
Evgeny Gerashchenko b2e74b1473 Adapted code to new structure of ranges. 2013-01-29 22:55:06 +04:00
Evgeny Gerashchenko 9b866b2e12 Implemented reversed() in proper way.
- converted it into function
- return sequence values
- implemented for sequences as well
2013-01-29 22:55:05 +04:00
Evgeny Gerashchenko 0051cb9553 downTo functions return sequence instead of range now. 2013-01-29 22:55:04 +04:00
Evgeny Gerashchenko c8a194c0a8 Dropped *Range.isReversed 2013-01-29 22:55:04 +04:00
Alexander Udalov e97b65801b Fix stdlib tests compilation 2013-01-16 22:18:14 +04:00
Evgeny Gerashchenko abaa450917 Moved JVM-specific String functions filter(), map(), etc to StringsJVM.kt 2013-01-16 20:32:24 +04:00
Yuri Samsoniuk b9e07eb645 [KT-1859] Added collection like extension methods to String. 2013-01-16 19:03:49 +04:00
Andrey Breslav 32073f0987 Fixing compilation in stdlib tests 2012-12-10 17:00:05 +04:00
Evgeny Gerashchenko 00873b6e8c Reverted loading arrays from java with 'out' projection kind as return value.
#KT-3065
2012-11-29 17:02:43 +04:00
Andrey Breslav 9dd167a760 Duplicating method removed from stdlib 2012-11-28 16:05:48 +04:00
Evgeny Gerashchenko 21e97b408c Loading java arrays as Array<out T> at method return type position, as well. 2012-11-20 16:16:47 +04:00
Evgeny Gerashchenko be7989af36 Moved JVM-specific String.repeat method to StringsJVM.kt 2012-11-19 13:29:17 +04:00
Tommy Hallgren 7ccded5f6d KT-2503 Added String.repeat method
#KT-2503 fixed
2012-11-17 14:43:06 +04:00
Andrey Breslav 92ef1c9417 Some 200 warnings eliminated from stdlib code 2012-10-19 16:17:51 +04:00
James Strachan 8a9485bd5f added a helper method to get the child elements of an Element by name 2012-10-09 09:12:34 +01:00
James Strachan 6a59820de3 added a test case for File.relativePath() along with fixing a bug if you pass the same file as the argument; it should have returned the empty string 2012-10-09 08:36:51 +01:00
Svetlana Isakova 9d5f5f7adf KT-2842 Function with declared non-null receiver resolves with nullable argument receiver
#KT-2842 fixed
2012-10-02 14:20:00 +04:00
Pavel V. Talanov efe0c83872 Delete some strange code left (accidentally?) for the purpose of testing KT-1515. 2012-10-01 16:17:42 +04:00
Andrey Breslav 66359894ee Additional tests for new behavior of getOrElse() and getOrPut() 2012-09-27 14:47:01 +04:00
Alex Tkachman 804e3769ff remove some unnecessary !! from stdlib 2012-09-26 19:19:44 +02:00
James Strachan be44702145 fixes KT-2091 allowing fold() and foldRight() to take different types of initial value and return the same typed result 2012-09-21 16:31:04 +01:00
Evgeny Gerashchenko 8e1323bb43 Replaced sure() invocations with '!!' operator in libraries written on Kotlin. 2012-09-17 18:00:21 +04:00
James Strachan 9c3d1071cd added more DRY compareBy function and helper class 2012-09-14 12:44:09 +01:00
James Strachan 51122a288d tried more concise comparison code 2012-09-14 12:05:06 +01:00
James Strachan 5647701c24 added a little sample test case of data classes 2012-09-14 11:19:13 +01:00
James Strachan 81d83cd4f0 added component1() / component2() methods to Map.Entry along with a test case so that maps can be iterated over via: for ((k, v) in map) 2012-09-14 11:18:35 +01:00
James Strachan ba01576c41 added a partition helper method to partition a collection into a collection of matching items and not matching items 2012-09-12 15:55:34 +01:00
James Strachan bcec41c779 allow nullable expressions to be used for lazily creating new items if there is not a value in the Map 2012-09-12 14:56:28 +01:00
Svetlana Isakova f987aa4faa removed JLang and LUtil from file named in stdlib 2012-09-10 20:15:19 +04:00
Andrey Breslav 89fd0526cf TupleN classes and their usages replaced by Pair and Triple
(KT-2358 Drop tuples)

 #KT-2358 In Progress
2012-09-07 21:26:42 +04:00
Andrey Breslav 8333448f10 Pair and Triple classes added 2012-09-07 21:26:12 +04:00
Svetlana Isakova 8b749084b5 library changes after collections mapping 2012-09-05 18:55:16 +04:00
Svetlana Isakova a3194e9a46 removed unnecessary import jet.Iterator 2012-09-05 18:55:16 +04:00
Alexander Udalov d99ffbd120 jet.Annotation
Create a supertype for all Kotlin annotations, jet.Annotation.
Map java.lang.annotation.Annotation to jet.Annotation and vice versa.
Add extension function "annotationType()" to every annotation, similar to java.lang.annotation.Annotation.annotationType()
 #KT-1620 Fixed
2012-08-27 20:44:43 +04:00
Andrey Breslav 66faa0c03a For-loop range expression (collection) can not be null 2012-08-24 19:49:33 +04:00
Svetlana Isakova ea611cb51d check modifiers for local declarations 2012-08-22 20:42:35 +04:00