Adjust testData to CharSequence.length transformation

This commit is contained in:
Denis Zharkov
2015-10-12 20:29:01 +03:00
committed by Mikhail Glukhikh
parent cb562e7ea5
commit f0e3fd617d
348 changed files with 524 additions and 540 deletions
+1 -1
View File
@@ -4,5 +4,5 @@ fun foo(p: List<String?>): Int {
// return -1 if null
return -1
}
return v.length()
return v.length
}
@@ -1,4 +1,4 @@
fun foo(p: List<String?>): Int {
val v = p[0] ?: <caret>return -1 // return -1 if null
return v.length()
return v.length
}
+1 -1
View File
@@ -2,5 +2,5 @@ fun foo(p: List<String?>): Int {
val v = p[0]
// now check if v is null
<caret>if (v == null/* null */) return -1 // return -1
return v.length()
return v.length
}
+1 -1
View File
@@ -2,5 +2,5 @@ fun foo(p: List<String?>): Int {
val v = p[0] ?: <caret>return -1 /* null */
// now check if v is null
// return -1
return v.length()
return v.length
}
+1 -1
View File
@@ -4,5 +4,5 @@ fun foo(p: List<String?>): Int {
// we should do something with it
return -1 // let's return -1
} // end of if
return v.length()
return v.length
}
+1 -1
View File
@@ -3,5 +3,5 @@ fun foo(p: List<String?>): Int {
// we should do something with it
// let's return -1
// end of if
return v.length()
return v.length
}
+1 -1
View File
@@ -2,7 +2,7 @@
fun foo(p: List<String?>): Int? {
val v = p[0]
<caret>if (v == null) bar()
return v?.length()
return v?.length
}
fun bar(){}
+1 -1
View File
@@ -5,7 +5,7 @@ class C {
fun foo(p: List<String?>): Int {
val v = p[0]
<caret>if (this.v == null) return -1
return v!!.length()
return v!!.length
}
}
+1 -1
View File
@@ -5,7 +5,7 @@ class C {
fun foo(p: List<String?>): Int {
val v = p[0]
<caret>if (x == null) return -1
return v!!.length()
return v!!.length
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
fun foo(p: List<String?>): Int {
val v = p[0]
<caret>if (v == null) return -1
return v.length()
return v.length
}
+1 -1
View File
@@ -1,4 +1,4 @@
fun foo(p: List<String?>): Int {
val v = p[0] ?: <caret>return -1
return v.length()
return v.length
}