More tests for generating methods from different caret positions

This commit is contained in:
Nikolay Krasko
2014-10-06 17:49:02 +04:00
parent 3c6566c1b1
commit 44b8e22bef
7 changed files with 114 additions and 0 deletions
@@ -0,0 +1,13 @@
trait Some {
fun foo()
}
class <caret>Other {
fun test() {
val a = 1
}
fun otherTest() {
}
}
@@ -0,0 +1,21 @@
trait Some {
fun foo()
}
class Other {
override fun equals(other: Any?): Boolean {
<selection><caret>return super<Any>.equals(other)</selection>
}
override fun hashCode(): Int {
return super<Any>.hashCode()
}
override fun toString(): String {
return super<Any>.toString()
}
fun test() {
val a = 1
}
fun otherTest() {
}
}
@@ -0,0 +1,13 @@
trait Some {
fun foo()
}
class Other {
fun test() {
val a = 1<caret>
}
fun otherTest() {
}
}
@@ -0,0 +1,21 @@
trait Some {
fun foo()
}
class Other {
fun test() {
val a = 1
}
override fun equals(other: Any?): Boolean {
<selection><caret>return super<Any>.equals(other)</selection>
}
override fun hashCode(): Int {
return super<Any>.hashCode()
}
override fun toString(): String {
return super<Any>.toString()
}
fun otherTest() {
}
}
@@ -0,0 +1,13 @@
trait Some {
fun foo()
}
class Other <caret>{
fun test() {
val a = 1
}
fun otherTest() {
}
}
@@ -0,0 +1,21 @@
trait Some {
fun foo()
}
class Other {
override fun equals(other: Any?): Boolean {
<selection><caret>return super<Any>.equals(other)</selection>
}
override fun hashCode(): Int {
return super<Any>.hashCode()
}
override fun toString(): String {
return super<Any>.toString()
}
fun test() {
val a = 1
}
fun otherTest() {
}
}