REPL: don't fail on a callable reference
There should probably be a special kind of property, but at least it won't throw an exception for now
This commit is contained in:
@@ -31,7 +31,7 @@ import org.jetbrains.jet.repl.AbstractReplInterpreterTest;
|
||||
/** This class is generated by {@link org.jetbrains.jet.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/repl")
|
||||
@InnerTestClasses({ReplInterpreterTestGenerated.Classes.class, ReplInterpreterTestGenerated.Objects.class})
|
||||
@InnerTestClasses({ReplInterpreterTestGenerated.Classes.class, ReplInterpreterTestGenerated.Objects.class, ReplInterpreterTestGenerated.Reflection.class})
|
||||
public class ReplInterpreterTestGenerated extends AbstractReplInterpreterTest {
|
||||
public void testAllFilesPresentInRepl() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/repl"), Pattern.compile("^(.+)\\.repl$"), true);
|
||||
@@ -178,11 +178,25 @@ public class ReplInterpreterTestGenerated extends AbstractReplInterpreterTest {
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/reflection")
|
||||
public static class Reflection extends AbstractReplInterpreterTest {
|
||||
public void testAllFilesPresentInReflection() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/repl/reflection"), Pattern.compile("^(.+)\\.repl$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.repl")
|
||||
public void testPropertyReference() throws Exception {
|
||||
doTest("compiler/testData/repl/reflection/propertyReference.repl");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite("ReplInterpreterTestGenerated");
|
||||
suite.addTestSuite(ReplInterpreterTestGenerated.class);
|
||||
suite.addTestSuite(Classes.class);
|
||||
suite.addTestSuite(Objects.class);
|
||||
suite.addTestSuite(Reflection.class);
|
||||
return suite;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user