[K2/N] Add klib contents serialization tests from old testinfra

Merge-request: KT-MR-8509
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-01-27 23:30:45 +00:00
committed by Space Team
parent 8bc2aaa295
commit debbfa8397
41 changed files with 838 additions and 7 deletions
@@ -0,0 +1,33 @@
class Class constructor() {
val a: Int = 10
val arrayConst: Any = {1.toByte(), 2.toByte()}
val b: Int = 30
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 a: Int = 10
val arrayConst: Any = {1.toByte(), 2.toByte()}
val b: Int = 30
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"