diff --git a/Programming Basics/Functions/Exercise 1/src/Task.kt b/Programming Basics/Functions/Exercise 1/src/Task.kt index e5ea3dfe..3c44a1a1 100644 --- a/Programming Basics/Functions/Exercise 1/src/Task.kt +++ b/Programming Basics/Functions/Exercise 1/src/Task.kt @@ -1,8 +1,8 @@ // Functions/Task1.kt package functionsExercise1 -fun getSquare(i: Int): Int = i * i +fun squareInt(i: Int): Int = i * i fun main() { - println(getSquare(2)) // 4 + println(squareInt(2)) // 4 } \ No newline at end of file diff --git a/Programming Basics/Functions/Exercise 1/test/Tests.kt b/Programming Basics/Functions/Exercise 1/test/Tests.kt index 0b67a1a3..35f55ac2 100644 --- a/Programming Basics/Functions/Exercise 1/test/Tests.kt +++ b/Programming Basics/Functions/Exercise 1/test/Tests.kt @@ -9,8 +9,8 @@ import util.TIMEOUT @FixMethodOrder(MethodSorters.NAME_ASCENDING) class TestFunctionsExercise1 { private fun testFunction(i: Int) { - Assert.assertEquals("getSquare($i) should return ${i * i}", - i * i, getSquare(i)) + Assert.assertEquals("squareInt($i) should return ${i * i}", + i * i, squareInt(i)) } @Test(timeout = TIMEOUT)