mirror of
https://github.com/HMCore/Core.git
synced 2025-12-12 13:56:19 +00:00
Fix Kotlin tests
This commit is contained in:
@@ -6,12 +6,14 @@ import org.junit.jupiter.api.Test
|
||||
// The primary function of the Kotlin tests is to ensure Kotlin-specific features are preserved
|
||||
// Meaning some tests might only make sure features work at compile time.
|
||||
|
||||
@Test
|
||||
fun `Module should support index access operator`() {
|
||||
HMCore.modules["ores"]!!["other"]
|
||||
}
|
||||
class KotlinTests {
|
||||
@Test
|
||||
fun `Module should support index access operator`() {
|
||||
HMCore.modules["ores"]?.apply { this["other"] }
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Module should support 'in' keyword`() {
|
||||
HMCore.modules["ores"]?.let { "copper" in it }
|
||||
}
|
||||
@Test
|
||||
fun `Module should support 'in' keyword`() {
|
||||
HMCore.modules["ores"]?.let { "copper" in it }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user