Udate test framework for confidence tests. Move type directive to test files

This commit is contained in:
Nikolay Krasko
2012-09-20 16:49:36 +04:00
parent bce5cb9034
commit f1059271b2
15 changed files with 67 additions and 26 deletions
@@ -1,3 +1,5 @@
fun test() {
12.in<caret>
}
}
// TYPE: "."
@@ -1,3 +1,5 @@
fun test() {
12.inc(). <caret>
}
12.inc().<caret>
}
// TYPE: "."
@@ -1 +1,3 @@
import kotlin.util <caret>// Comment to prevent for removing trailing spaces
import kotlin.util <caret>// Comment to prevent for removing trailing spaces
// TYPE: "as"
@@ -1 +1,3 @@
import kotlin.util as // Comment to prevent for removing trailing spaces
import kotlin.util as// Comment to prevent for removing trailing spaces
// TYPE: "as"
@@ -1,4 +1,6 @@
fun main(args : Array<String>) {
val mmm = 12
val t = { <caret>}
}
}
// TYPE: "mm "
@@ -1,4 +1,6 @@
fun main(args : Array<String>) {
val mmm = 12
val t = { mm }
}
}
// TYPE: "mm "
@@ -1,4 +1,6 @@
fun main(args : Array<String>) {
val mmm = 12
val t = { (<caret>) }
}
}
// TYPE: "mm "
@@ -1,4 +1,6 @@
fun main(args : Array<String>) {
val mmm = 12
val t = { (mm ) }
}
}
// TYPE: "mm "
@@ -1,4 +1,6 @@
fun main(args : Array<String>) {
val mmm = 12
val t = { i -> <caret>}
}
}
// TYPE: "mm "
@@ -1,4 +1,6 @@
fun main(args : Array<String>) {
val mmm = 12
val t = { i -> mmm }
}
}
// TYPE: "mm "
@@ -2,4 +2,6 @@ package test
import java.util.AbstractSet as Hello
<caret>// Comment to prevent for removing trailing spaces
<caret>// Comment to prevent for removing trailing spaces
// TYPE: "pub "
@@ -2,4 +2,6 @@ package test
import java.util.AbstractSet as Hello
public // Comment to prevent for removing trailing spaces
public // Comment to prevent for removing trailing spaces
// TYPE: "pub "
@@ -2,3 +2,5 @@ fun test() {
for (i in 12.<caret>) {
}
}
// TYPE: "."
@@ -1,4 +1,6 @@
fun test() {
for (i in 12.. ) {
for (i in 12..) {
}
}
// TYPE: "."