Added a test

This commit is contained in:
Valentin Kipyatkov
2014-11-20 12:29:33 +03:00
parent 166d580682
commit 4ca8a3400e
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,3 @@
Resolve target: value-parameter val c: kotlin.Collection<kotlin.String>
Skipped statements:
println()
@@ -0,0 +1,13 @@
fun foo(c: Collection<String>): Collection<String> {
return <caret>c.filter {
val v = it.length
val v1 = v * v
if (v1 > 10) {
true
}
else {
println()
it[0] == 'a'
}
}
}
@@ -19,6 +19,7 @@ package org.jetbrains.jet.resolve;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.jet.JUnit3RunnerWithInners;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -239,6 +240,12 @@ public class PartialBodyResolveTestGenerated extends AbstractPartialBodyResolveT
doTest(fileName);
}
@TestMetadata("LambdaInCurrentStatement.kt")
public void testLambdaInCurrentStatement() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/LambdaInCurrentStatement.kt");
doTest(fileName);
}
@TestMetadata("LocalClass.kt")
public void testLocalClass() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/LocalClass.kt");