Regression tests for some old EA reports
EA-35953, EA-35743
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user