Extract Function: Add test data

This commit is contained in:
Alexey Sedunov
2014-04-10 20:09:13 +04:00
parent 4dec0508a6
commit 0d90dcf010
111 changed files with 1596 additions and 13 deletions
@@ -0,0 +1,9 @@
// NEXT_SIBLING:
fun foo(a: Int) {
val b: Int = 1
<selection>if(a > 0) {
println(a)
}
println(b)</selection>
}
@@ -0,0 +1,13 @@
// NEXT_SIBLING:
fun unit(a: Int, b: Int) {
if (a > 0) {
println(a)
}
println(b)
}
fun foo(a: Int) {
val b: Int = 1
unit(a, b)
}
@@ -0,0 +1,12 @@
// NEXT_SIBLING:
fun foo(a: Int) {
val b: Int = 1
<selection>var t = a
while(t > 0) {
if (t == 2) continue
println(t)
if (t == 1) break
t--
}</selection>
}
@@ -0,0 +1,16 @@
// NEXT_SIBLING:
fun unit(a: Int) {
var t = a
while (t > 0) {
if (t == 2) continue
println(t)
if (t == 1) break
t--
}
}
fun foo(a: Int) {
val b: Int = 1
unit(a)
}