Support string templates in ConstantExpressionEvaluator
This commit is contained in:
+40
@@ -31,6 +31,7 @@ import org.jetbrains.jet.resolve.annotation.AbstractAnnotationParameterTest;
|
||||
/** This class is generated by {@link org.jetbrains.jet.generators.tests.GenerateTests}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/resolveAnnotations/parameters")
|
||||
@InnerTestClasses({AnnotationParameterTestGenerated.Expressions.class})
|
||||
public class AnnotationParameterTestGenerated extends AbstractAnnotationParameterTest {
|
||||
public void testAllFilesPresentInParameters() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/resolveAnnotations/parameters"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
@@ -71,4 +72,43 @@ public class AnnotationParameterTestGenerated extends AbstractAnnotationParamete
|
||||
doTest("compiler/testData/resolveAnnotations/parameters/short.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolveAnnotations/parameters/expressions")
|
||||
public static class Expressions extends AbstractAnnotationParameterTest {
|
||||
public void testAllFilesPresentInExpressions() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/resolveAnnotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("escapedString.kt")
|
||||
public void testEscapedString() throws Exception {
|
||||
doTest("compiler/testData/resolveAnnotations/parameters/expressions/escapedString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multilineString.kt")
|
||||
public void testMultilineString() throws Exception {
|
||||
doTest("compiler/testData/resolveAnnotations/parameters/expressions/multilineString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringPlusInt.kt")
|
||||
public void testStringPlusInt() throws Exception {
|
||||
doTest("compiler/testData/resolveAnnotations/parameters/expressions/stringPlusInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringTemplate.kt")
|
||||
public void testStringTemplate() throws Exception {
|
||||
doTest("compiler/testData/resolveAnnotations/parameters/expressions/stringTemplate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strings.kt")
|
||||
public void testStrings() throws Exception {
|
||||
doTest("compiler/testData/resolveAnnotations/parameters/expressions/strings.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite("AnnotationParameterTestGenerated");
|
||||
suite.addTestSuite(AnnotationParameterTestGenerated.class);
|
||||
suite.addTestSuite(Expressions.class);
|
||||
return suite;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user