@@ -9,21 +9,27 @@ import kotlinx.datetime.DateTimeFormatException
99import kotlin.test.assertFailsWith
1010import kotlin.test.fail
1111
12- inline fun <T > assertArithmeticFails (message : String? = null, f : () -> T ) {
12+ @Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
13+ @kotlin.internal.InlineOnly
14+ internal inline fun <T > assertArithmeticFails (message : String? = null, f : () -> T ) {
1315 assertFailsWith<DateTimeArithmeticException >(message) {
1416 val result = f()
1517 fail(result.toString())
1618 }
1719}
1820
19- inline fun <T > assertInvalidFormat (message : String? = null, f : () -> T ) {
21+ @Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
22+ @kotlin.internal.InlineOnly
23+ internal inline fun <T > assertInvalidFormat (message : String? = null, f : () -> T ) {
2024 assertFailsWith<DateTimeFormatException >(message) {
2125 val result = f()
2226 fail(result.toString())
2327 }
2428}
2529
26- inline fun <T > assertIllegalArgument (message : String? = null, f : () -> T ) {
30+ @Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
31+ @kotlin.internal.InlineOnly
32+ internal inline fun <T > assertIllegalArgument (message : String? = null, f : () -> T ) {
2733 assertFailsWith<IllegalArgumentException >(message) {
2834 val result = f()
2935 fail(result.toString())
@@ -33,4 +39,4 @@ inline fun <T> assertIllegalArgument(message: String? = null, f: () -> T) {
3339/* *
3440 * The number of iterations to perform in nondeterministic tests.
3541 */
36- const val STRESS_TEST_ITERATIONS = 1000
42+ const val STRESS_TEST_ITERATIONS = 1000
0 commit comments