Tests has been added
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// "Replace with dot call" "true"
|
||||
fun test(value : Int) : Int {
|
||||
value<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Replace with dot call" "true"
|
||||
fun test(value : String) : Int {
|
||||
return value<caret>.length()
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// "Replace with safe call" "true"
|
||||
fun foo(a: Int?) {
|
||||
a?.plus(1)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Replace with safe (?.) call" "true"
|
||||
fun foo(a: Int?) {
|
||||
a?.plus(1)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Replace with non-null asserted (!!.) call" "true"
|
||||
fun foo(a: Int?) {
|
||||
a!!.plus(1)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Replace with dot call" "true"
|
||||
fun test(value : Int) : Int {
|
||||
value<caret>!!
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Replace with dot call" "true"
|
||||
fun test(value : String) : Int {
|
||||
return value<caret>!!.length()
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with safe call" "true"
|
||||
// "Replace with safe (?.) call" "true"
|
||||
fun foo(a: Int?) {
|
||||
a<caret>.plus(1)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Replace with non-null asserted (!!.) call" "true"
|
||||
fun foo(a: Int?) {
|
||||
a<caret>.plus(1)
|
||||
}
|
||||
Reference in New Issue
Block a user