From dee6bb2f4959f7d71fd109c0b7a52b4631de7d2e Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Tue, 21 Jul 2015 11:39:59 +0300 Subject: [PATCH] Fixed test --- .../intentions/addForLoopIndices/sequence.kt | 6 ++++++ .../{stream.kt.after => sequence.kt.after} | 4 ++-- idea/testData/intentions/addForLoopIndices/stream.kt | 6 ------ .../idea/intentions/IntentionTestGenerated.java | 12 ++++++------ 4 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 idea/testData/intentions/addForLoopIndices/sequence.kt rename idea/testData/intentions/addForLoopIndices/{stream.kt.after => sequence.kt.after} (50%) delete mode 100644 idea/testData/intentions/addForLoopIndices/stream.kt diff --git a/idea/testData/intentions/addForLoopIndices/sequence.kt b/idea/testData/intentions/addForLoopIndices/sequence.kt new file mode 100644 index 00000000000..cc90fb6fd4e --- /dev/null +++ b/idea/testData/intentions/addForLoopIndices/sequence.kt @@ -0,0 +1,6 @@ +// WITH_RUNTIME +fun foo(bar: Sequence) { + for (a in bar) { + + } +} \ No newline at end of file diff --git a/idea/testData/intentions/addForLoopIndices/stream.kt.after b/idea/testData/intentions/addForLoopIndices/sequence.kt.after similarity index 50% rename from idea/testData/intentions/addForLoopIndices/stream.kt.after rename to idea/testData/intentions/addForLoopIndices/sequence.kt.after index 65080a14bda..29a31946b3f 100644 --- a/idea/testData/intentions/addForLoopIndices/stream.kt.after +++ b/idea/testData/intentions/addForLoopIndices/sequence.kt.after @@ -1,5 +1,5 @@ -//WITH_RUNTIME -fun foo(bar: Stream) { +// WITH_RUNTIME +fun foo(bar: Sequence) { for ((index, a) in bar.withIndex()) { } diff --git a/idea/testData/intentions/addForLoopIndices/stream.kt b/idea/testData/intentions/addForLoopIndices/stream.kt deleted file mode 100644 index 94eb1690af9..00000000000 --- a/idea/testData/intentions/addForLoopIndices/stream.kt +++ /dev/null @@ -1,6 +0,0 @@ -//WITH_RUNTIME -fun foo(bar: Stream) { - for (a in bar) { - - } -} \ No newline at end of file diff --git a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java index dbb199e7046..9da117906a6 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java +++ b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java @@ -148,15 +148,15 @@ public class IntentionTestGenerated extends AbstractIntentionTest { doTest(fileName); } - @TestMetadata("simpleIntList.kt") - public void testSimpleIntList() throws Exception { - String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/simpleIntList.kt"); + @TestMetadata("sequence.kt") + public void testSequence() throws Exception { + String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/sequence.kt"); doTest(fileName); } - @TestMetadata("stream.kt") - public void testStream() throws Exception { - String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/stream.kt"); + @TestMetadata("simpleIntList.kt") + public void testSimpleIntList() throws Exception { + String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/addForLoopIndices/simpleIntList.kt"); doTest(fileName); }