Modified placeholder
This commit is contained in:
parent
c0c1c2ccaa
commit
72e307e9ca
|
@ -3,8 +3,8 @@ files:
|
|||
- name: src/Task.kt
|
||||
visible: true
|
||||
placeholders:
|
||||
- offset: 30
|
||||
length: 101
|
||||
placeholder_text: // class Dog
|
||||
- offset: 44
|
||||
length: 85
|
||||
placeholder_text: // bark function
|
||||
- name: test/Tests.kt
|
||||
visible: false
|
||||
|
|
|
@ -14,7 +14,7 @@ class TestOverloadingExercise2 {
|
|||
private fun testDog(test: (dog: Any?, barkFunc: KFunction<*>) -> Unit) {
|
||||
val dogClass = loadClass("overloadingExercise2", "Dog")
|
||||
val barkFunctions = dogClass.memberFunctions.filter { it.name == "bark" }
|
||||
Assert.assertEquals("Expected only one 'bark' function in the class 'Dog'",
|
||||
Assert.assertEquals("Expected one 'bark' function in the class 'Dog'",
|
||||
1, barkFunctions.size)
|
||||
val barkFunc = barkFunctions.single()
|
||||
checkParametersOfMemberFunction(barkFunc, listOf("n" to "kotlin.Int", "say" to "kotlin.String"))
|
||||
|
|
Loading…
Reference in New Issue