Renamed and correct test data

This commit is contained in:
Valentin Kipyatkov
2015-07-21 13:10:33 +03:00
parent dee6bb2f49
commit 0c9401c953
21 changed files with 37 additions and 37 deletions
@@ -1,4 +1,4 @@
//IS_APPLICABLE: FALSE
// IS_APPLICABLE: false
// WITH_RUNTIME
fun b(c: List<String>) {
for ((<caret>indexVariable, d) in c.withIndex()) {
@@ -1,7 +0,0 @@
//IS_APPLICABLE: FALSE
//ERROR: Unresolved reference: b
fun foo() {
for (a <caret>in b) {
}
}
@@ -0,0 +1,7 @@
// IS_APPLICABLE: false
// ERROR: Unresolved reference: b
fun foo() {
for (a <caret>in b) {
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: IntArray) {
for (<caret>a in bar) {
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: IntArray) {
for ((index, a) in bar.withIndex()) {
+1 -1
View File
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: Iterable<Int>) {
for (<caret>a in bar) {
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: Iterable<Int>) {
for ((index, a) in bar.withIndex()) {
+1 -1
View File
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: Array<Object>) {
for (<caret>a in bar) {
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: Array<Object>) {
for ((index, a) in bar.withIndex()) {
+1 -1
View File
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: String) {
for (<caret>a in bar) {
+1 -1
View File
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: String) {
for ((index, a) in bar.withIndex()) {
@@ -1,4 +1,4 @@
//IS_APPLICABLE: FALSE
// IS_APPLICABLE: false
fun foo(bar: List<String>) {
for (<caret>a in bar) {
@@ -1,5 +1,5 @@
// IS_APPLICABLE: FALSE
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(b: List<Int>) : Int {
for ((i, <caret>c) in b.withIndex()) {
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: List<Int>) {
for ((i : <caret>Int, b: Int) in bar.withIndex()) {
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: List<Int>) {
for (b: Int in bar) {
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: List<String>) {
for ((i,<caret>a) in bar.withIndex()) {
@@ -1,4 +1,4 @@
//WITH_RUNTIME
// WITH_RUNTIME
fun foo(bar: List<String>) {
for (a in bar) {
@@ -100,27 +100,33 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/addForLoopIndices"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), true);
}
@TestMetadata("explicitParamType.kt")
public void testExplicitParamType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/explicitParamType.kt");
doTest(fileName);
}
@TestMetadata("inapplicableExistingIndices.kt")
public void testInapplicableExistingIndices() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/inapplicableExistingIndices.kt");
doTest(fileName);
}
@TestMetadata("inapplicableOnMap.kt")
public void testInapplicableOnMap() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/inapplicableOnMap.kt");
doTest(fileName);
}
@TestMetadata("inapplicableOverridenFunction.kt")
public void testInapplicableOverridenFunction() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/inapplicableOverridenFunction.kt");
doTest(fileName);
}
@TestMetadata("inapplicableSyntaxError.kt")
public void testInapplicableSyntaxError() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/inapplicableSyntaxError.kt");
doTest(fileName);
}
@TestMetadata("inapplicableUnorderedCollection.kt")
public void testInapplicableUnorderedCollection() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/inapplicableUnorderedCollection.kt");
@TestMetadata("inapplicableUnresolved.kt")
public void testInapplicableUnresolved() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/inapplicableUnresolved.kt");
doTest(fileName);
}
@@ -136,12 +142,6 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
doTest(fileName);
}
@TestMetadata("listWithType.kt")
public void testListWithType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/listWithType.kt");
doTest(fileName);
}
@TestMetadata("objectArray.kt")
public void testObjectArray() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/objectArray.kt");