Add tests for JetRefactoringUtil.selectExpression

Add tests for JetRefactoringUtil.selectExpression, which is invoked by
e.g. extract variable when some text is selected.

Test cases under idea/testData/expressionSelection/ should contain
Kotlin files with the usual <selection> tags, with the expected result
of selectExpression in the last comment of the file.
This commit is contained in:
Tuomas Tynkkynen
2014-02-21 13:56:56 +02:00
committed by Nikolay Krasko
parent 4968afebf8
commit 998d2c5ec8
5 changed files with 110 additions and 0 deletions
@@ -0,0 +1,2 @@
val f = 4<selection>0.5 + 1.</selection>5
// 40.5 + 1.5