Replace "jet" package name with "kotlin" in testData

This commit is contained in:
Alexander Udalov
2014-02-21 23:29:57 +04:00
parent f2b4c7fa3e
commit f7b6457139
763 changed files with 2314 additions and 2310 deletions
@@ -6,22 +6,22 @@ fun check(expected: String, obj: Any?) {
fun box(): String {
check("kotlin.FunctionImpl0<jet.Unit>")
check("kotlin.FunctionImpl0<kotlin.Unit>")
{ () : Unit -> }
check("kotlin.FunctionImpl0<java.lang.Integer>")
{ () : Int -> 42 }
check("kotlin.FunctionImpl1<java.lang.String, java.lang.Long>")
{ (s: String) : Long -> 42.toLong() }
check("kotlin.FunctionImpl2<java.lang.Integer, java.lang.Integer, jet.Unit>")
check("kotlin.FunctionImpl2<java.lang.Integer, java.lang.Integer, kotlin.Unit>")
{ (x: Int, y: Int) : Unit -> }
check("kotlin.ExtensionFunctionImpl0<java.lang.Integer, jet.Unit>")
check("kotlin.ExtensionFunctionImpl0<java.lang.Integer, kotlin.Unit>")
{ Int.() : Unit -> }
check("kotlin.ExtensionFunctionImpl0<jet.Unit, java.lang.Integer>")
check("kotlin.ExtensionFunctionImpl0<kotlin.Unit, java.lang.Integer>")
{ Unit.() : Int -> 42 }
check("kotlin.ExtensionFunctionImpl1<java.lang.String, java.lang.String, java.lang.Long>")
{ String.(s: String) : Long -> 42.toLong() }
check("kotlin.ExtensionFunctionImpl2<java.lang.Integer, java.lang.Integer, java.lang.Integer, jet.Unit>")
check("kotlin.ExtensionFunctionImpl2<java.lang.Integer, java.lang.Integer, java.lang.Integer, kotlin.Unit>")
{ Int.(x: Int, y: Int) : Unit -> }
return "OK"
@@ -5,7 +5,7 @@ fun box(): String {
return if (test(1) == 3) "OK" else "fail"
}
class Cached<K, V>(private val generate: (K)->V): jet.Function1<K, V> {
class Cached<K, V>(private val generate: (K)->V): Function1<K, V> {
val store = java.util.HashMap<K, V>()
// Everything works just fine if 'invoke' method is renamed to, for example, 'get'