Add a test for escaped names supported in the new evaluator (KT-29661)
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
package escapedNames
|
||||||
|
|
||||||
|
fun main() {
|
||||||
|
val `one + one` = 1
|
||||||
|
//Breakpoint!
|
||||||
|
val a = 5
|
||||||
|
}
|
||||||
|
|
||||||
|
// EXPRESSION: `one + one` + 100
|
||||||
|
// RESULT: 101: I
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
LineBreakpoint created at escapedNames.kt:6
|
||||||
|
Run Java
|
||||||
|
Connected to the target VM
|
||||||
|
escapedNames.kt:6
|
||||||
|
Compile bytecode for `one + one` + 100
|
||||||
|
Disconnected from the target VM
|
||||||
|
|
||||||
|
Process finished with exit code 0
|
||||||
Generated
+5
@@ -116,6 +116,11 @@ public class KotlinEvaluateExpressionTestGenerated extends AbstractKotlinEvaluat
|
|||||||
runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/errors.kt");
|
runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/errors.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("escapedNames.kt")
|
||||||
|
public void testEscapedNames() throws Exception {
|
||||||
|
runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/escapedNames.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("extractLocalVariables.kt")
|
@TestMetadata("extractLocalVariables.kt")
|
||||||
public void testExtractLocalVariables() throws Exception {
|
public void testExtractLocalVariables() throws Exception {
|
||||||
runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extractLocalVariables.kt");
|
runTest("idea/testData/debugger/tinyApp/src/evaluate/singleBreakpoint/extractLocalVariables.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user