Fix CompareTo intrinsic behavior in no-dot syntax

This commit is contained in:
Alexander Udalov
2013-01-22 19:28:06 +04:00
parent 44dcdde513
commit ab730b7dd5
5 changed files with 43 additions and 1 deletions
@@ -199,4 +199,8 @@ public class FunctionGenTest extends CodegenTestCase {
assertFalse(text.contains("INVOKEVIRTUAL"));
assertTrue(text.contains("INVOKESPECIAL"));
}
public void testEa33909() {
blackBoxFile("regressions/ea33909.kt");
}
}
@@ -33,6 +33,11 @@ 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("longRangeWithExplicitDot.kt")
public void testLongRangeWithExplicitDot() throws Exception {