Add test suite for smart expression selector
Add test suite for smart expression selector (the small expression list popup in e.g. Extract Variable.) The test file format is similar to that in JetNameSuggesterTest: a .kt file with the usual <caret> marker specifying the place where the smart selector will be run. Then, the last comment in the file should contain the expected outcome.
This commit is contained in:
committed by
Nikolay Krasko
parent
815ca2fe57
commit
85c46019d3
@@ -0,0 +1,9 @@
|
||||
fun main(args: Array<String>) {
|
||||
print(Math.pow(1.<caret>0 + 1, Math.abs(-42.0)))
|
||||
}
|
||||
/*
|
||||
1.0
|
||||
1.0 + 1
|
||||
Math.pow(1.0 + 1, Math.abs(-42.0))
|
||||
print(Math.pow(1.0 + 1, Math.abs(-42.0)))
|
||||
*/
|
||||
Reference in New Issue
Block a user