Add test for comparison used for primitives and Comparable
There's a subtle difference in behavior between comparing primitive Float/Double (comparison follows IEEE standard) and boxed Float/Double (comparison is a total order). Make sure this corner case is preserved.
This commit is contained in:
@@ -13195,6 +13195,12 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inDoubleRangeLiteralVsComparableRangeLiteral.kt")
|
||||
public void testInDoubleRangeLiteralVsComparableRangeLiteral() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/contains/inDoubleRangeLiteralVsComparableRangeLiteral.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("inExtensionRange.kt")
|
||||
public void testInExtensionRange() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/contains/inExtensionRange.kt");
|
||||
|
||||
Reference in New Issue
Block a user