Abduqodiri Qurbonzoda
dc03a03762
Introduce basic, url-safe and mime Base64 variants #KT-9823
2023-01-16 11:24:49 +00:00
Igor Yakovlev
35340f2f04
[Wasm] Fix stdlib String to Float parse
2022-12-29 11:57:47 +00:00
Abduqodiri Qurbonzoda
fff593492d
Introduce Common AutoCloseable & use #KT-31066
...
Co-authored-by: Ilya Gorbunov <Ilya.Gorbunov@jetbrains.com >
Merge-request: KT-MR-8113
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2022-12-27 11:50:22 +00:00
Ilya Gorbunov
e35ace5d3a
Deprecate AbstractDoubleTimeSource
...
There are too few usages of it, and it can be mostly replaced with AbstractLongTimeSource.
2022-09-19 19:16:40 +00:00
Ilya Gorbunov
57c9d61291
ComparableTimeMark and specialized TimeSource KT-54082
...
- Introduce ComparableTimeMark interface extending TimeMark,
and TimeSource.WithComparableMarks - a time source that returns such time marks.
- Implement ComparableTimeMark in ValueTimeMark and AbstractLong/DoubleTimeMark classes.
2022-09-19 19:16:40 +00:00
Abduqodiri Qurbonzoda
0db9326105
Introduce a deprecated StringBuilder.append(CharArray, Int, Int) in Common #KT-52336
2022-09-08 14:34:38 +00:00
Abduqodiri Qurbonzoda
faedd76b32
Remove deprecation from ConcurrentModificationException constructors #KT-53927
...
The constructors were introduced in jdk7,
thus their usage was prohibited in Common code.
Now that jvmTarget is 1.8 and jdk8+ is used to compile stdlib,
these constructors are available on all platforms.
2022-09-08 14:01:09 +00:00
Ilya Gorbunov
8b95257143
Reduce the chance shuffle produces an identical permutation in test (part 2)
2022-08-29 22:14:24 +02:00
Vsevolod Tolstopyatov
5054e301be
[stdlib] Improve EnumEntries
...
* Provide short-circuit methods for contract "EnumEntries contains all
enum entries"
* Make EnumEntries serializable
* Introduce more convenient overload for other backends
#KT-53152
Merge-request: KT-MR-6867
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2022-08-22 16:50:28 +00:00
Abduqodiri Qurbonzoda
6c4777dcdd
Fix JDK-dependent stdlib tests after advancing jvmTarget
2022-08-17 22:55:43 +03:00
Ilya Gorbunov
1addc23b23
Add range iteration tests for rangeUntil
...
#KT-52932
2022-07-26 23:52:10 +00:00
Ilya Gorbunov
721508f6dd
Add several equality tests for empty open ranges
2022-07-26 18:42:30 +00:00
Ilya Gorbunov
4e31f368d5
Add more info to a flaky assertion, increase wait duration
2022-07-19 20:57:39 +00:00
Vsevolod Tolstopyatov
59ac756f22
Initial implementation of EnumEntries
...
KT-53152
Merge-request: KT-MR-6656
Merged-by: Vsevolod Tolstopyatov <vsevolod.tolstopyatov@jetbrains.com >
2022-07-15 14:26:50 +00:00
Ilya Gorbunov
3a029b8e80
Fix ValueTimeMark adjustment in rare cases and properly test it
2022-07-01 15:20:22 +00:00
Ilya Gorbunov
f422845b9c
Test open FP ranges with NaN bound
...
#KT-52932
2022-07-01 13:11:42 +00:00
Ilya Gorbunov
73084e5a68
Add tests for endExclusive property
...
Now, after a bootstrap, it's possible to use it
#KT-52932
2022-07-01 13:11:42 +00:00
Vsevolod Tolstopyatov
0c8b31b9ed
Clarify specification of Duration.parseIsoString
...
KT-52778
Co-authored-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
Merge-request: KT-MR-6556
Merged-by: Vsevolod Tolstopyatov <vsevolod.tolstopyatov@jetbrains.com >
2022-06-28 07:43:33 +00:00
Ilya Gorbunov
227953a267
Temporarily avoid endExclusive in tests
...
(until bootstrap)
2022-06-28 00:08:07 +00:00
Ilya Gorbunov
4475b15037
Add tests for open ranges
...
#KT-52932
2022-06-28 00:08:06 +00:00
Romain Guy
02a3915fdf
KT-48232: Implement kotlin.math.cbrt() (cubic roots)
...
cbrt() is the standard cubic root function that provides several advantages over pow(x, 1.0/3.0):
- Better precision
- Faster
- Behaves better with negative values
2022-06-16 20:27:43 +03:00
Ilya Gorbunov
77cf41c189
Saturate overflowing values when adjusting time marks
...
KT-46132
2022-04-14 16:54:31 +00:00
Ilya Gorbunov
fede70d0d5
Make TimeMark returned by TimeSource.Monotonic a value class
...
This value class wraps Long on JVM and Native thus reducing allocations
in time measurement scenarios when the default monotonic time source is
statically known.
KT-46132
2022-04-14 16:54:30 +00:00
Ilya Gorbunov
1845e326d1
Hide deprecated Double/FloatArray.contains/indexOf/lastIndexOf
2022-04-12 15:03:40 +00:00
Abduqodiri Qurbonzoda
33fb49f20d
Fix JDK7 failing tests
2022-04-06 07:42:58 +00:00
Abduqodiri Qurbonzoda
1cb5cab28f
[K/N and WASM] Fix ESCAPE and COMMENTS modes
2022-04-05 15:21:31 +00:00
Abduqodiri Qurbonzoda
9593069cb3
[K/N and WASM] Throw on duplicate group name
2022-04-05 15:21:30 +00:00
Abduqodiri Qurbonzoda
187faa121e
Test backreference to group with index zero
2022-04-05 15:21:29 +00:00
Abduqodiri Qurbonzoda
74121b26c0
Test octal literal in regex
2022-04-05 15:21:28 +00:00
Abduqodiri Qurbonzoda
46408ffd9d
Fix tests by adjusting to platform behavior
2022-04-05 15:21:27 +00:00
Abduqodiri Qurbonzoda
9c4c1ed557
[K/N and WASM] Implement named capturing group in Regexes #KT-41890
2022-04-05 15:21:26 +00:00
Abduqodiri Qurbonzoda
c3f5d03b36
[JS] Support named capture groups in Regex #KT-51775
2022-04-05 15:21:25 +00:00
Ilya Gorbunov
4c461d7864
Add min/max test generator and generated tests
...
Temporarily exclude these tests from kotlin-stdlib-wasm testing due to KT-51647
2022-04-04 22:33:25 +00:00
Abduqodiri Qurbonzoda
42c9a27b8a
Specialize Progression first/last/OrNull functions #KT-42178
2022-04-04 22:27:49 +00:00
Ilya Gorbunov
000165b12b
Fix incorrect conversion of Long to String in base 36 in JS KT-48924
2022-03-30 06:13:51 +00:00
Alexander Korepanov
d584cfc31d
Remove workaround for KT-45620 from NumbersTest.kt.
2022-01-28 17:10:01 +00:00
Ilya Gorbunov
a829a6743d
KT-50173 Fix Regex.escapeReplacement function in JS
2021-12-12 00:27:31 +00:00
Ilya Gorbunov
64c3aef7ab
Reduce the chance shuffle produces an identical permutation in test
2021-12-02 20:58:53 +03:00
Pavel Kunyavskiy
9b366af38b
[K/N] Fix String.compareTo on unicode strings
...
^KT-49873
2021-12-01 07:51:27 +00:00
Ilya Gorbunov
4386a800c8
KT-49721 Avoid matching from the same position after a zero-width match
...
In JS, RegExp can return a match before the specified start index,
if it has matched at that index, but it is in the middle of a surrogate
pair. Account for that when advancing to the next position after
a zero-width match so that it doesn't get to the middle of SP.
2021-11-29 17:02:06 +00:00
Sergey Bogolepov
f43b5d32f9
Add tests for Char.isHighSurrogate() and Char.isLowSurrogate()
2021-11-09 08:27:59 +00:00
Svyatoslav Kuzmich
5b10396f48
[stdlib] Test that modification of the array returned by toCharArray() doesn't affect the original string
2021-10-28 15:49:00 +00:00
Svyatoslav Kuzmich
6ad6bca503
[Stdlib] Fix K/N StringBuilder insertRange capacity issue
2021-10-01 17:18:48 +03:00
Abduqodiri Qurbonzoda
dc2f5eab25
Align JS and JVM behavior of Regex replace function #KT-28378
2021-09-30 17:38:03 +00:00
Abduqodiri Qurbonzoda
f8bcba0b76
Align JS String.equals/compareTo(ignoreCase) behavior with JVM #KT-48999
2021-09-30 15:35:50 +00:00
Ilya Gorbunov
04d70162d2
Make DurationUnit not a typealias of TimeUnit on JVM
...
Provide conversion functions between DurationUnit and TimeUnit
2021-09-30 14:31:54 +00:00
Ilya Gorbunov
193effc7c4
Fix Random.nextLong returning value out of range KT-47304
...
Correctly zero-extend the lower Int part of the Long being produced
2021-09-29 06:50:41 +00:00
Ilya Gorbunov
21a9198fff
Bring back Duration construction extensions KT-46229
...
Return the extension properties for constructing Duration from numbers,
but this time place them in Duration.Companion rather than on top-level.
- provide the new set of construction extension properties
in companion of Duration
- leave top-level extension properties experimental,
increase their deprecation level to ERROR,
propose the extension properties in companion instead.
- leave Duration companion static factory functions experimental,
deprecate them and propose the extension properties in companion instead.
2021-09-24 16:17:53 +00:00
Ilya Gorbunov
96611de344
Stabilize Duration, DurationUnit and related top-level functions KT-46784
...
Co-authored-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com >
2021-09-24 16:17:53 +00:00
Ilya Gorbunov
1960fe65b8
Minor: more reliable empty range check in RangeIterationTest
2021-09-23 21:06:35 +03:00