Got rid of "jet" file extension.
This commit is contained in:
@@ -51,7 +51,7 @@ public class FunctionTest extends AbstractExpressionTest {
|
||||
}
|
||||
|
||||
public void testClosureWithParameterAndBoxing() throws Exception {
|
||||
checkFooBoxIsOk("closureWithParameterAndBoxing.jet");
|
||||
checkFooBoxIsOk("closureWithParameterAndBoxing.kt");
|
||||
}
|
||||
|
||||
public void testEnclosingThis() throws Exception {
|
||||
|
||||
@@ -29,7 +29,7 @@ public final class MiscTest extends AbstractExpressionTest {
|
||||
}
|
||||
|
||||
public void testLocalPropertys() throws Exception {
|
||||
runFunctionOutputTest("localProperty.jet", "foo", "box", 50);
|
||||
runFunctionOutputTest("localProperty.kt", "foo", "box", 50);
|
||||
}
|
||||
|
||||
public void testIntRange() throws Exception {
|
||||
|
||||
@@ -55,7 +55,7 @@ public final class TraitTest extends SingleFileTranslationTest {
|
||||
|
||||
|
||||
public void testFunDelegation() throws Exception {
|
||||
checkFooBoxIsOk("funDelegation.jet");
|
||||
checkFooBoxIsOk("funDelegation.kt");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -57,12 +57,11 @@ public abstract class TranslatorTestCaseBuilder {
|
||||
|
||||
public static void appendTestsInDirectory(String dataPath, boolean recursive,
|
||||
final FilenameFilter filter, NamedTestFactory factory, TestSuite suite) {
|
||||
final String extensionJet = ".jet";
|
||||
final String extensionKt = ".kt";
|
||||
final FilenameFilter extensionFilter = new FilenameFilter() {
|
||||
@Override
|
||||
public boolean accept(File dir, String name) {
|
||||
return name.endsWith(extensionJet) || name.endsWith(extensionKt);
|
||||
return name.endsWith(extensionKt);
|
||||
}
|
||||
};
|
||||
FilenameFilter resultFilter;
|
||||
@@ -98,7 +97,6 @@ public abstract class TranslatorTestCaseBuilder {
|
||||
for (File file : files) {
|
||||
String fileName = file.getName();
|
||||
assert fileName != null;
|
||||
String extension = fileName.endsWith(extensionJet) ? extensionJet : extensionKt;
|
||||
suite.addTest(factory.createTest(fileName));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,6 @@ public final class JetFileUtils {
|
||||
@NotNull Project project
|
||||
) {
|
||||
return (JetFile) PsiFileFactory.getInstance(project)
|
||||
.createFileFromText(name.endsWith(".kt") ? name : name + ".jet", JetLanguage.INSTANCE, text, true, false);
|
||||
.createFileFromText(name.endsWith(".kt") ? name : name + ".kt", JetLanguage.INSTANCE, text, true, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user