Renamed test data folders

This commit is contained in:
Valentin Kipyatkov
2015-07-21 11:37:19 +03:00
parent 9ad04a1a26
commit a81ed335d0
28 changed files with 24 additions and 24 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.RemoveForLoopIndicesIntention
@@ -0,0 +1,6 @@
//IS_APPLICABLE: FALSE
fun foo(bar: List<String>) {
for (<caret>a in bar) {
}
}
@@ -0,0 +1,9 @@
// IS_APPLICABLE: FALSE
//WITH_RUNTIME
fun foo(b: List<Int>) : Int {
for ((i, <caret>c) in b.withIndex()) {
return i
}
return 0
}
@@ -0,0 +1,10 @@
// WITH_RUNTIME
// IS_APPLICABLE: FALSE
fun Int.withIndex(): List<Pair<Int, Int>> = linkedListOf<Pair<Int, Int>>()
fun foo(s: Int) {
for ((index<caret>, a) in s.withIndex()) {
}
}
@@ -0,0 +1,6 @@
//WITH_RUNTIME
fun foo(bar: List<Int>) {
for ((i : <caret>Int, b: Int) in bar.withIndex()) {
}
}
@@ -0,0 +1,6 @@
//WITH_RUNTIME
fun foo(bar: List<Int>) {
for (b: Int in bar) {
}
}
@@ -0,0 +1,6 @@
//WITH_RUNTIME
fun foo(bar: List<String>) {
for ((i,<caret>a) in bar.withIndex()) {
}
}
@@ -0,0 +1,6 @@
//WITH_RUNTIME
fun foo(bar: List<String>) {
for (a in bar) {
}
}