Generate weigher tests from Kotlin base

This commit is contained in:
Nikolay Krasko
2013-09-13 21:58:56 +04:00
parent e6c6982c61
commit 39bf53155b
12 changed files with 149 additions and 79 deletions
@@ -1,7 +1,9 @@
fun foo1() {}
deprecated("Use foo3 instead") fun foo2() {}
fun foo3 {}
fun foo3() {}
fun test() {
<caret>
}
foo<caret>
}
// ORDER: foo1, foo3, foo2
@@ -2,5 +2,7 @@ val initGlobal = 12
fun test(initParam : Int) {
val initLocal = "Test"
<caret>
}
init<caret>
}
// ORDER: initLocal, initParam, initGlobal
@@ -1,4 +1,6 @@
fun test() {
val a = 12
<caret>
}
a<caret>
}
// ORDER: a, as
@@ -1,4 +1,6 @@
fun test(fals: Int) {
val falt = 111
f<caret>
}
fa<caret>
}
// ORDER: fals, falt, false
@@ -1,3 +1,5 @@
fun bar(fo: Int) {
<caret>
}
fun bar(fop: Int) {
fo<caret>
}
// ORDER: fop, for (... in ...) {...}
@@ -1,4 +1,6 @@
fun main(variables: Array<String>) {
val values = ""
<caret>
}
va<caret>
}
// ORDER: values, variables, val ... = ..., var ... = ..., vararg