merged changes

This commit is contained in:
UnrealValentin
2021-04-11 23:11:01 +02:00
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package org.hmcore.tests
import org.hmcore.HMCore
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.
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 }
}
}