Minor, rename and adapt test
This commit is contained in:
-9
@@ -1,9 +0,0 @@
|
||||
enum class E {
|
||||
I
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val i = (E::name.getter)(E.I)
|
||||
if (i != "I") return "Fail $i"
|
||||
return "OK"
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
enum class E {
|
||||
I
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val i = (E::name).get(E.I)
|
||||
if (i != "I") return "Fail $i"
|
||||
val n = (E::ordinal).get(E.I)
|
||||
if (n != 0) return "Fail $n"
|
||||
return "OK"
|
||||
}
|
||||
+6
-6
@@ -462,12 +462,6 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
|
||||
doTestWithStdlib(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("enumNameMethod.kt")
|
||||
public void testEnumNameMethod() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/callableReference/function/enumNameMethod.kt");
|
||||
doTestWithStdlib(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("enumValueOfMethod.kt")
|
||||
public void testEnumValueOfMethod() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/callableReference/function/enumValueOfMethod.kt");
|
||||
@@ -804,6 +798,12 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
|
||||
doTestWithStdlib(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("enumNameOrdinal.kt")
|
||||
public void testEnumNameOrdinal() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/callableReference/property/enumNameOrdinal.kt");
|
||||
doTestWithStdlib(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("extensionToArray.kt")
|
||||
public void testExtensionToArray() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/callableReference/property/extensionToArray.kt");
|
||||
|
||||
Reference in New Issue
Block a user