[KLIB][tests] Reorganize "klib dump-metadata" tests
- Keep the test data under "native/native.tests/testData/klib/" dir - Rename tests from "klib contents" to "klib dump-metadata"
This commit is contained in:
committed by
Space Team
parent
ec9370c30b
commit
cb92990ed6
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
class Class constructor() {
|
||||
val arrayConst: Any = {1.toByte(), 2.toByte()}
|
||||
val booleanConst: Boolean = true
|
||||
val byteConst: Byte = 10.toByte()
|
||||
val charConst: Char = \u0041 ('A')
|
||||
val doubleConst: Double = 3.0.toDouble()
|
||||
val enumConst: Weapon? = Weapon.ROCK
|
||||
val floatConst: Float = 2.0.toFloat()
|
||||
val intConst: Int = 30
|
||||
val longConst: Long = 40.toLong()
|
||||
val shortConst: Short = 20.toShort()
|
||||
val stringConst: String = "abcd"
|
||||
}
|
||||
enum class Weapon private constructor() : Enum<Weapon> {
|
||||
enum entry ROCK
|
||||
enum entry PAPER
|
||||
enum entry SCISSORS
|
||||
}
|
||||
val arrayConst: Any = {1.toByte(), 2.toByte()}
|
||||
val booleanConst: Boolean = true
|
||||
val byteConst: Byte = 10.toByte()
|
||||
val charConst: Char = \u0041 ('A')
|
||||
val doubleConst: Double = 3.0.toDouble()
|
||||
val enumConst: Weapon? = Weapon.ROCK
|
||||
val floatConst: Float = 2.0.toFloat()
|
||||
val intConst: Int = 30
|
||||
val longConst: Long = 40.toLong()
|
||||
val shortConst: Short = 20.toShort()
|
||||
val stringConst: String = "abcd"
|
||||
Reference in New Issue
Block a user