fun returnNum(n:Int): Int{ return n }
fun returnInt(int:Int): Int{return int- fun returnNum(n:Int): Int{
- return n
- }
import kotlin.test.Test import kotlin.test.assertEquals class ReturnNumTest { @Test fun `returnNum test`() { assertEquals(returnNum(-10), -10); } }
- import kotlin.test.Test
- import kotlin.test.assertEquals
class ReturnIntTest {- class ReturnNumTest {
- @Test
fun `returnInt test`() {assertEquals(returnInt(-10), -10);- fun `returnNum test`() {
- assertEquals(returnNum(-10), -10);
- }
- }