Move test data for NavigateTo*Library tests to a more specific folder

This commit is contained in:
Pavel V. Talanov
2014-02-21 16:31:09 +04:00
parent bbcc2a33ed
commit b6b423935f
28 changed files with 1 additions and 1 deletions
@@ -0,0 +1,10 @@
import testData.libraries.*
fun foo() {
WithInnerAndObject.foo()
}
// main.kt
//public class <1>WithInnerAndObject {
// class object {
// fun <2>foo() {
@@ -0,0 +1,6 @@
import testData.libraries.*
val x: ClassWithConstructor = ClassWithConstructor("abc", 239)
// main.kt
//public class <1><2>ClassWithConstructor(val a: String, b: Any)
@@ -0,0 +1,8 @@
import testData.libraries.*
val color: Color? = Color.RED
val rgb = color?.rgb
// main.kt
//public enum class <1><2>Color(val <4>rgb : Int) {
// <3>RED : Color(0xFF0000)
@@ -0,0 +1,7 @@
import testData.libraries.*
val v = 5.filter { it % 2 == 1 }
// main.kt
//public inline fun <T> T.<1>filter(predicate: (T)-> Boolean) : T? = this
@@ -0,0 +1,22 @@
import testData.libraries.*
fun foo() {
println("".exProp)
val p = Pair(1, 2)
println(p.exProp)
}
// main.kt
//public val String.<1>exProp : String
//get() {
// return this
//}
//
//public val Int.exProp : Int
//get() {
// return this
//}
//
//public class <2>Pair<A, B>(val first: A, val second: B)
//
//public val <T> Pair<T, T>.<3>exProp : String
@@ -0,0 +1,8 @@
import testData.libraries.*
fun test() {
genericFunc<String>()
}
// main.kt
//public fun <T> <1>genericFunc() : T = throw Exception()
@@ -0,0 +1,9 @@
import testData.libraries.*
fun test() {
val s : String = genericFunc()
}
// main.kt
//public fun <T> <1>genericFunc() : T = throw Exception()
@@ -0,0 +1,17 @@
import testData.libraries.*
fun foo() {
func(5)
func(5, "5")
func(5, 5)
func()
}
// main.kt
//public fun <1><2>func(a : Int, b : String = "55") {
//}
//
//public fun <3>func(a : Int, b : Int) {
//}
//
//public fun <4>func() {
@@ -0,0 +1,11 @@
import testData.libraries.*
fun foo() {
println(testData.libraries.globalVal)
println(globalValWithGetter)
}
// main.kt
//public val <1>globalVal : Pair<Int, String> = Pair(239, "239")
//
//public val <2>globalValWithGetter : Long
@@ -0,0 +1,7 @@
import testData.libraries.*
val x = NamedObject.objectMember
// main.kt
//public object <1>NamedObject {
// public val <2>objectMember: Int = 1
@@ -0,0 +1,12 @@
import testData.libraries.*
fun main(args: Array<String>) {
funWithTypeParam(1)
funWithTypeParam("")
}
// main.kt
//public fun <T: CharSequence> <2>funWithTypeParam(t: T) {
//}
//
//public fun <T: Number> <1>funWithTypeParam(t: T) {
@@ -0,0 +1,22 @@
import testData.libraries.*
fun foo(a : ClassWithAbstractAndOpenMembers) {
a.abstractVar = "v"
println(a.abstractVar)
}
// main.kt
//public abstract class <1>ClassWithAbstractAndOpenMembers {
// public abstract fun abstractFun()
// public open fun openFun() {
// }
//
// public abstract val abstractVal : String
// public open val openVal : String = ""
// public open val openValWithGetter : String
// get() {
// return "239"
// }
//
// public abstract var <2><3>abstractVar : String
@@ -0,0 +1,11 @@
import testData.libraries.*
fun foo() {
func("5")
func(5)
}
// extra.kt
//public fun <1>func(str : gogland.String) {
// main.kt
//public fun <2>func(a : Int, b : String = "55") {
@@ -0,0 +1,13 @@
import testData.libraries.*
fun foo() {
processDouble(1.0);
processDouble(Double())
}
// main.kt
//public class <3>Double
//
//public fun <2>processDouble(d: Double) {}
//
//public fun <1>processDouble(d: kotlin.Double) {}