Support && and || in ConstantExpressionEvaluator

This commit is contained in:
Natalia Ukhorskaya
2013-11-08 15:51:45 +04:00
parent f8f55799b9
commit 210899af22
5 changed files with 63 additions and 2 deletions
@@ -78,6 +78,11 @@ public class AnnotationParameterTestGenerated extends AbstractAnnotationParamete
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/resolveAnnotations/parameters/expressions"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("andAnd.kt")
public void testAndAnd() throws Exception {
doTest("compiler/testData/resolveAnnotations/parameters/expressions/andAnd.kt");
}
@TestMetadata("boolean.kt")
public void testBoolean() throws Exception {
doTest("compiler/testData/resolveAnnotations/parameters/expressions/boolean.kt");
@@ -188,6 +193,11 @@ public class AnnotationParameterTestGenerated extends AbstractAnnotationParamete
doTest("compiler/testData/resolveAnnotations/parameters/expressions/multilineString.kt");
}
@TestMetadata("orOr.kt")
public void testOrOr() throws Exception {
doTest("compiler/testData/resolveAnnotations/parameters/expressions/orOr.kt");
}
@TestMetadata("plus.kt")
public void testPlus() throws Exception {
doTest("compiler/testData/resolveAnnotations/parameters/expressions/plus.kt");