Regression tests for some old EA reports

EA-35953, EA-35743
This commit is contained in:
Alexander Udalov
2013-01-22 19:35:56 +04:00
parent ab730b7dd5
commit 8b5607d98f
4 changed files with 22 additions and 1 deletions
@@ -0,0 +1,6 @@
fun box(): String {
if (12.toString() equals "13") {
return "Fail"
}
return "OK"
}
@@ -0,0 +1,6 @@
val Int.test = "test"
fun box(): String {
val x = "a ${1.test}"
return if (x == "a test") "OK" else "Fail $x"
}
@@ -88,4 +88,8 @@ public class StringsTest extends CodegenTestCase {
public void testKt889() throws Exception {
blackBoxFile("regressions/kt889.jet");
}
public void testEa35743() {
blackBoxFile("regressions/ea35743.kt");
}
}
@@ -33,12 +33,17 @@ public class IntrinsicsTestGenerated extends AbstractCodegenTest {
public void testAllFilesPresentInIntrinsics() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/intrinsics"), "kt", true);
}
@TestMetadata("compareTo.kt")
public void testCompareTo() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/intrinsics/compareTo.kt");
}
@TestMetadata("ea35953.kt")
public void testEa35953() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/intrinsics/ea35953.kt");
}
@TestMetadata("longRangeWithExplicitDot.kt")
public void testLongRangeWithExplicitDot() throws Exception {
blackBoxFileByFullPath("compiler/testData/codegen/intrinsics/longRangeWithExplicitDot.kt");