Intention tests: add operator modifier in some tests

This commit is contained in:
Natalia Ukhorskaya
2015-12-16 15:43:58 +03:00
parent 2c29f6f5ab
commit ce3d53d2ee
99 changed files with 99 additions and 99 deletions
@@ -1,6 +1,6 @@
fun test() {
class Test {
fun unaryPlus(vararg a: Int): Test = Test()
operator fun unaryPlus(vararg a: Int): Test = Test()
}
val test = Test()
test.unaryPl<caret>us()
@@ -1,6 +1,6 @@
fun test() {
class Test {
fun unaryPlus(vararg a: Int): Test = Test()
operator fun unaryPlus(vararg a: Int): Test = Test()
}
val test = Test()
+test
@@ -1,6 +1,6 @@
fun test() {
class Test {
fun unaryPlus(a: Int=1): Test = Test()
operator fun unaryPlus(a: Int=1): Test = Test()
}
val test = Test()
test.unaryPl<caret>us()
@@ -1,6 +1,6 @@
fun test() {
class Test {
fun unaryPlus(a: Int=1): Test = Test()
operator fun unaryPlus(a: Int=1): Test = Test()
}
val test = Test()
+test
@@ -1,7 +1,7 @@
// IS_APPLICABLE: false
fun test() {
class Test {
fun unaryPlus(fn: () -> Unit): Test = Test()
operator fun unaryPlus(fn: () -> Unit): Test = Test()
}
val test = Test()
test.unaryPl<caret>us {}
@@ -1,7 +1,7 @@
// IS_APPLICABLE: false
fun test() {
class Test {
fun unaryPlus(a: Int): Test = Test()
operator fun unaryPlus(a: Int): Test = Test()
}
val test = Test()
test.unaryPl<caret>us(a=1)
@@ -1,7 +1,7 @@
// INTENTION_TEXT: Replace with '!' operator
fun test() {
class Test {
fun not(): Test = Test()
operator fun not(): Test = Test()
}
val test = Test()
test.n<caret>ot()
@@ -1,7 +1,7 @@
// INTENTION_TEXT: Replace with '!' operator
fun test() {
class Test {
fun not(): Test = Test()
operator fun not(): Test = Test()
}
val test = Test()
!test
@@ -1,7 +1,7 @@
// IS_APPLICABLE: false
fun test() {
class Test {
fun unaryPlus(vararg a: Int): Test = Test()
operator fun unaryPlus(vararg a: Int): Test = Test()
}
val test = Test()
test.unaryPl<caret>us(0)
@@ -1,7 +1,7 @@
// IS_APPLICABLE: false
fun test() {
class Test {
fun unaryPlus(a: Int): Test = Test()
operator fun unaryPlus(a: Int): Test = Test()
}
val test = Test()
test.unaryPl<caret>us(1)