Him188 6 лет назад
Родитель
Сommit
227fd84533
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      mirai-core/src/commonTest/kotlin/net.mamoe.mirai.test/TestDSL.kt

+ 4 - 4
mirai-core/src/commonTest/kotlin/net.mamoe.mirai.test/TestDSL.kt

@@ -11,13 +11,13 @@ import kotlin.test.assertTrue
 internal annotation class TestDSL
 
 @TestDSL
-inline fun Boolean.shouldBeTrue() = assertTrue { this }
+fun Boolean.shouldBeTrue() = assertTrue { this }
 
 @TestDSL
-inline fun Boolean.shouldBeFalse() = assertFalse { this }
+fun Boolean.shouldBeFalse() = assertFalse { this }
 
 @TestDSL
-inline infix fun <E> E.shouldBeEqualTo(another: E) = assertEquals(another, this)
+infix fun <E> E.shouldBeEqualTo(another: E) = assertEquals(another, this)
 
 @TestDSL
-inline infix fun <E> E.shouldNotBeEqualTo(another: E) = assertNotEquals(another, this)
+infix fun <E> E.shouldNotBeEqualTo(another: E) = assertNotEquals(another, this)