1 /* 2 * Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 5 package sample 6 7 import kotlinx.serialization.* 8 import kotlinx.serialization.builtins.* 9 import kotlin.test.* 10 11 class SampleTestsJVM { 12 @Test testHellonull13 fun testHello() { 14 assertTrue("JVM" in hello()) 15 } 16 17 @Test 18 @OptIn(ExperimentalSerializationApi::class) kindSimpleNamenull19 fun kindSimpleName() { 20 val kind = Int.serializer().descriptor.kind 21 val name = kind.toString() 22 assertEquals("INT", name) 23 } 24 } 25