File tree 1 file changed +1
-7
lines changed 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -9,26 +9,20 @@ import kotlinx.datetime.DateTimeFormatException
9
9
import kotlin.test.assertFailsWith
10
10
import kotlin.test.fail
11
11
12
- @Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
13
- @kotlin.internal.InlineOnly
14
12
inline fun <T > assertArithmeticFails (message : String? = null, f : () -> T ) {
15
13
assertFailsWith<DateTimeArithmeticException >(message) {
16
14
val result = f()
17
15
fail(result.toString())
18
16
}
19
17
}
20
18
21
- @Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
22
- @kotlin.internal.InlineOnly
23
19
inline fun <T > assertInvalidFormat (message : String? = null, f : () -> T ) {
24
20
assertFailsWith<DateTimeFormatException >(message) {
25
21
val result = f()
26
22
fail(result.toString())
27
23
}
28
24
}
29
25
30
- @Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
31
- @kotlin.internal.InlineOnly
32
26
inline fun <T > assertIllegalArgument (message : String? = null, f : () -> T ) {
33
27
assertFailsWith<IllegalArgumentException >(message) {
34
28
val result = f()
@@ -39,4 +33,4 @@ inline fun <T> assertIllegalArgument(message: String? = null, f: () -> T) {
39
33
/* *
40
34
* The number of iterations to perform in nondeterministic tests.
41
35
*/
42
- const val STRESS_TEST_ITERATIONS = 1000
36
+ const val STRESS_TEST_ITERATIONS = 1000
You can’t perform that action at this time.
0 commit comments