data deprecations cleanup: reserved word tests fixed
This commit is contained in:
-24
@@ -35,30 +35,6 @@ public class ReservedWordTestGenerated extends AbstractReservedWordTest {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("js/js.translator/testData/reservedWords/cases"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClassParamElse.kt")
|
||||
public void testDataClassParamElse() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/reservedWords/cases/dataClassParamElse.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClassParamFalse.kt")
|
||||
public void testDataClassParamFalse() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/reservedWords/cases/dataClassParamFalse.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClassParamInfinity.kt")
|
||||
public void testDataClassParamInfinity() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/reservedWords/cases/dataClassParamInfinity.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClassParamKotlin.kt")
|
||||
public void testDataClassParamKotlin() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/reservedWords/cases/dataClassParamKotlin.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClassValBreak.kt")
|
||||
public void testDataClassValBreak() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/reservedWords/cases/dataClassValBreak.kt");
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
package foo
|
||||
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
data class DataClass(`else`: String) {
|
||||
init {
|
||||
testRenamed("else", { `else` })
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
DataClass("123")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package foo
|
||||
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
data class DataClass(`false`: String) {
|
||||
init {
|
||||
testRenamed("false", { `false` })
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
DataClass("123")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package foo
|
||||
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
data class DataClass(Infinity: String) {
|
||||
init {
|
||||
testRenamed("Infinity", { Infinity })
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
DataClass("123")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package foo
|
||||
|
||||
// NOTE THIS FILE IS AUTO-GENERATED by the generateTestDataForReservedWords.kt. DO NOT EDIT!
|
||||
|
||||
data class DataClass(Kotlin: String) {
|
||||
init {
|
||||
testRenamed("Kotlin", { Kotlin })
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
DataClass("123")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user