KT-37505 Add box test

This commit is contained in:
Dmitry Petrov
2020-03-16 10:13:20 +03:00
parent 3dc898b8ca
commit d5b65abc5d
7 changed files with 40 additions and 0 deletions
@@ -17795,6 +17795,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
}
@TestMetadata("kt37505.kt")
public void testKt37505() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
}
@TestMetadata("kt4097.kt")
public void testKt4097() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
+10
View File
@@ -0,0 +1,10 @@
fun testByte(x: Int?) = x?.toByte()?.hashCode()?.equals(x)
fun testShort(x: Int?) = x?.toShort()?.hashCode()?.equals(x)
fun box(): String {
testByte(42)
testShort(42)
return "OK"
}
@@ -19311,6 +19311,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
}
@TestMetadata("kt37505.kt")
public void testKt37505() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
}
@TestMetadata("kt4097.kt")
public void testKt4097() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
@@ -19311,6 +19311,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
}
@TestMetadata("kt37505.kt")
public void testKt37505() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
}
@TestMetadata("kt4097.kt")
public void testKt4097() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
@@ -17795,6 +17795,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
}
@TestMetadata("kt37505.kt")
public void testKt37505() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
}
@TestMetadata("kt4097.kt")
public void testKt4097() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
@@ -14831,6 +14831,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
}
@TestMetadata("kt37505.kt")
public void testKt37505() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
}
@TestMetadata("kt4097.kt")
public void testKt4097() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");
@@ -14936,6 +14936,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/primitiveTypes/kt3613.kt");
}
@TestMetadata("kt37505.kt")
public void testKt37505() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt37505.kt");
}
@TestMetadata("kt4097.kt")
public void testKt4097() throws Exception {
runTest("compiler/testData/codegen/box/primitiveTypes/kt4097.kt");