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:
committed by
Alexander Udalov
parent
c959b271a4
commit
4fffed4165
+5
-5
@@ -2630,11 +2630,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
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");
|
||||
@@ -28161,6 +28156,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/parametersToString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyAccessorEqualsHashCode.kt")
|
||||
public void testPropertyAccessorEqualsHashCode() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/propertyAccessorEqualsHashCode.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyEqualsHashCode.kt")
|
||||
public void testPropertyEqualsHashCode() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/methodsFromAny/propertyEqualsHashCode.kt");
|
||||
|
||||
Reference in New Issue
Block a user