Checked that KT-2832 has been fixed

#KT-2832 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-10-09 19:26:15 +02:00
parent 50e1ec9c4f
commit 9663fac5b1
2 changed files with 22 additions and 2 deletions
@@ -0,0 +1,10 @@
fun foo() {
Math.pow(2.0 <caret>)
}
// EXIST: !in
// EXIST: !is
// EXIST: as
// EXIST: in
// EXIST: is
// NUMBER: 5
@@ -17,9 +17,13 @@
package org.jetbrains.jet.completion;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.TestMetadata;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.junit.runner.RunWith;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import org.jetbrains.jet.JUnit3RunnerWithInners;
import java.io.File;
import java.util.regex.Pattern;
@@ -64,6 +68,12 @@ public class KeywordCompletionTestGenerated extends AbstractKeywordCompletionTes
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/completion/keywords"), Pattern.compile("^(.+)\\.kt$"), false);
}
@TestMetadata("CommaExpected.kt")
public void testCommaExpected() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/keywords/CommaExpected.kt");
doTest(fileName);
}
@TestMetadata("InArgumentList.kt")
public void testInArgumentList() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/keywords/InArgumentList.kt");