Evgeny Gerashchenko
90b065e82b
+= tests fix
2014-07-29 12:06:36 +04:00
Denis Zharkov
48ca1bd453
Assignment operations test fix:
...
type infered for these vals are MutableIterator, but there is no plus (returning MutableIterator)
nor plusAssign operator for them, so I casted them explicitly to Iterator
2014-07-28 22:00:15 +04:00
Alexander Udalov
a79398fa00
Don't load Object as a supertype for Java classes
...
#KT-4890 In Progress
#KT-5002 Fixed
2014-07-25 21:19:37 +04:00
Ilya Ryzhenkov
3980664049
Tests for map functions.
2014-07-16 21:35:12 +04:00
Zalim Bashorov
14ab3c4de1
JS stdlib: allowed use null as key and value in Map implementations. Added tests for using null in Set and Map implementations.
2014-07-16 21:35:11 +04:00
Zalim Bashorov
9b081fd254
Minor: assert -> assertTrue
2014-07-16 21:35:10 +04:00
Ilya Ryzhenkov
4ea62071b5
Split tests into platform-independent and JVM.
2014-07-16 21:35:09 +04:00
Ilya Ryzhenkov
a9da7cfeea
Use LinkedHashMap everywhere to preserve order.
2014-07-16 21:35:09 +04:00
Ilya Ryzhenkov
cb17f0c635
Remove map iteration from ListSpecificTest - JS fails, but it is irrelevant to test.
2014-07-16 21:35:08 +04:00
Ilya Ryzhenkov
3491c88793
Recover test for mutable List variable and move it to ListSpecificTests
2014-07-16 21:35:07 +04:00
Ilya Ryzhenkov
295ce5fdf8
Unify substringBefore/After and related functions, so that they always return receiver in case of missing delimiter by default.
2014-07-16 21:10:32 +04:00
Ilya Ryzhenkov
2b6fcc0b7c
singleOrNull methods should never throw exception #KT-5424 Fixed
2014-07-16 21:10:32 +04:00
Zalim Bashorov
28228d23b1
JS stdlib: added missed constructors for HashSet, LinkedHashSet, HashMap and LinkedHashMap.
2014-06-26 16:33:14 +04:00
Ilya Ryzhenkov
ca7c3d7999
Set operations (distinct, union, intersect, subtract)
2014-06-24 23:49:16 +04:00
Ilya Ryzhenkov
65da4cb2fb
Generalize zip(..) to merge(..) { t1, t2 -> ... }, add merge for maps.
2014-06-24 23:49:16 +04:00
Ilya Ryzhenkov
f94b79fac3
Minor. Update reference to issue.
2014-06-24 23:49:15 +04:00
Ilya Ryzhenkov
4e4d0b448c
Minor. Cleanup test.
2014-06-24 23:49:15 +04:00
Ilya Ryzhenkov
516bae17d7
StringBuilder builder and appendln
2014-06-24 23:49:15 +04:00
Ilya Ryzhenkov
0717511abe
Substring and replace before/after first/last occurrence of delimiter.
2014-06-24 23:49:15 +04:00
Zalim Bashorov
79b7b1c447
JS stdlib: added test for using special names(i.e. Object.prototype members) in Maps and Sets. Fixed the support special names in PrimitiveHashMap.
2014-06-20 16:42:43 +04:00
Zalim Bashorov
6f5c88c21f
JS stdlib: added LinkedHashMap abd LinkedHashSet.
2014-06-20 16:42:43 +04:00
Zalim Bashorov
a2584dc6d7
JS backend: added entrySet to HashMap implementations and fixed iteration over maps.
2014-06-20 16:42:43 +04:00
Alexander Udalov
a94f12d8fe
Use f/L literal suffixes instead of toFloat()/toLong()
2014-06-18 20:35:25 +04:00
Alexander Udalov
ad23a2d05b
Fix equals and hashCode for empty ranges and progressions
...
Empty range is equal to any other empty range
2014-06-18 20:35:25 +04:00
Alexander Udalov
751f062f23
Add *Range.isEmpty(), *Progression.isEmpty()
2014-06-18 20:22:24 +04:00
Alexander Udalov
607694c3c9
Fix range inclusivity in String.indices
2014-06-18 20:22:23 +04:00
Ilya Ryzhenkov
ab45439256
Convert iterable of pairs to map, improve generic toMap(mutableMap) function #KT-4166 Fixed
2014-06-10 11:11:03 +04:00
Ilya Ryzhenkov
f471f7901c
Migrate to using join* functions instead of deprecated.
2014-06-10 11:11:02 +04:00
Ilya Ryzhenkov
a2a93a3830
Fix String.dropWhile & String.takeWhile
2014-06-10 11:11:01 +04:00
Ilya Ryzhenkov
5b73fba2d4
Support "key in map" using extension contains() function. #KT-3607 Fixed
2014-06-10 11:11:01 +04:00
Ilya Ryzhenkov
692f60b1d6
Uncommented code in data class test for equality and toString
2014-06-10 11:11:00 +04:00
Ilya Ryzhenkov
178ae83e8d
sort and binarySearch methods now have correct default toIndex parameter #KT-4963 Fixed
2014-06-10 11:11:00 +04:00
Alexander Udalov
9c04c9ea38
Fix stdlib tests on JVM
...
#KT-5064 Open
2014-05-21 02:04:36 +04:00
Alexander Udalov
af3d56b44e
Fix JVM type mapping of arrays of type variables
...
#KT-4262 Fixed
#KT-5056 Fixed
2014-05-20 19:22:53 +04:00
Andrey Breslav
5536f4da07
Test data generated from both files separated in 717f03f474
2014-04-24 16:22:43 +04:00
Ilya Ryzhenkov
717f03f474
Split tests into platform independent and JVM parts to run subset of tests in JS
2014-04-24 12:59:43 +04:00
Ilya Ryzhenkov
a825b13a4b
Restore tests on streams, add test for filterNotNull
2014-04-24 12:59:42 +04:00
Ilya Ryzhenkov
cbc0e6404e
Support String in generators, and migrate generated functions.
2014-04-24 12:59:41 +04:00
Amal Samally
a3ad79e5d9
KT-4614: Add String.format(Locale, args)
2014-04-24 12:59:40 +04:00
Ilya Ryzhenkov
1db035a0aa
Slice functions for arrays and lists.
2014-04-24 12:59:40 +04:00
Zalim Bashorov
96d5a1d0e6
JS backend: test both versions of Map(Complex and Primitive)
2014-04-02 17:50:40 +04:00
Zalim Bashorov
336ff43b26
JS backend: - test both versions of Set(Complex and Primitive)
...
- added size in PrimitiveSet
- fixed contains in PrimitiveSet
#KT-4796 fixed
2014-04-02 17:50:40 +04:00
Alexander Udalov
e3fffe275b
Fix implementation of Iterable<T>.take
...
#KT-4780 Fixed
2014-03-28 19:08:48 +04:00
Ilya Ryzhenkov
33415c2333
Uncomment test for TreeSet
2014-03-19 20:25:15 +04:00
Ilya Ryzhenkov
fb7034a472
Clean TODOs and commented code which works.
2014-03-19 20:25:15 +04:00
Ilya Ryzhenkov
266f6ad81a
Clean TODOs, add custom Iterable implementation test.
2014-03-19 20:25:15 +04:00
Ilya Ryzhenkov
e37d8174c3
New stdlib generators
2014-03-19 20:25:11 +04:00
Zalim Bashorov
33360c2528
Dropped some TODOs
...
#KT-2564 Obsolete. Looks like, it's fixed in dcddd04 .
2014-03-11 20:03:58 +04:00
Alexander Udalov
f63cbcfd6a
Delete wrong toString() extension, fix StringJVMTest
2014-03-02 19:55:28 +04:00
Alexander Udalov
11cc7f46f4
Remove "Iterator.iterator()" intrinsic, add stdlib function
2014-03-02 19:55:24 +04:00