Files
kotlin-fork/libraries/stdlib/common/test/testUtils.kt
T
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

23 lines
735 B
Kotlin

/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package test
public expect fun assertTypeEquals(expected: Any?, actual: Any?)
internal expect fun String.removeLeadingPlusOnJava6(): String
internal expect inline fun testOnNonJvm6And7(f: () -> Unit)
public expect fun testOnJvm(action: () -> Unit)
public expect fun testOnJs(action: () -> Unit)
public expect val isFloat32RangeEnforced: Boolean
public expect val supportsSuppressedExceptions: Boolean
public expect val supportsNamedCapturingGroup: Boolean
public expect val regexSplitUnicodeCodePointHandling: Boolean