Improve test on equals/hashCode for KProperty accessors

Remove duplication & unnecessary checks, check equality in both
directions, check hashCode, add more cases, rename variables for
clarity.

 #KT-13490
This commit is contained in:
Alexander Udalov
2021-04-19 20:12:39 +02:00
committed by Alexander Udalov
parent c959b271a4
commit 4fffed4165
9 changed files with 92 additions and 102 deletions
@@ -1850,11 +1850,6 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt");
}
@TestMetadata("propertyAccessors.kt")
public void testPropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/propertyAccessors.kt");
}
@TestMetadata("receiverInEquals.kt")
public void testReceiverInEquals() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
@@ -1850,11 +1850,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt");
}
@TestMetadata("propertyAccessors.kt")
public void testPropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/propertyAccessors.kt");
}
@TestMetadata("receiverInEquals.kt")
public void testReceiverInEquals() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
@@ -1850,11 +1850,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt");
}
@TestMetadata("propertyAccessors.kt")
public void testPropertyAccessors() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/propertyAccessors.kt");
}
@TestMetadata("receiverInEquals.kt")
public void testReceiverInEquals() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");