mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 16:49:12 +00:00
Remove inline modifier from string asserts
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
|||||||
|
package org.apollo.game.plugin.testing.assertions
|
||||||
|
|
||||||
|
import io.mockk.MockKMatcherScope
|
||||||
|
|
||||||
|
fun MockKMatcherScope.contains(search: String) = match<String> { it.contains(search) }
|
||||||
|
fun MockKMatcherScope.startsWith(search: String) = match<String> { it.startsWith(search) }
|
||||||
|
fun MockKMatcherScope.endsWith(search: String) = match<String> { it.endsWith(search) }
|
||||||
-7
@@ -1,7 +0,0 @@
|
|||||||
package org.apollo.game.plugin.testing.assertions
|
|
||||||
|
|
||||||
import io.mockk.MockKMatcherScope
|
|
||||||
|
|
||||||
inline fun MockKMatcherScope.contains(search: String) = match<String> { it.contains(search) }
|
|
||||||
inline fun MockKMatcherScope.startsWith(search: String) = match<String> { it.startsWith(search) }
|
|
||||||
inline fun MockKMatcherScope.endsWith(search: String) = match<String> { it.endsWith(search) }
|
|
||||||
Reference in New Issue
Block a user