Migrate boxInline tests to new multi-file framework

This commit is contained in:
Alexander Udalov
2016-02-24 13:29:32 +03:00
committed by Alexander Udalov
parent fa1f7d988e
commit cc84aabdcf
586 changed files with 6946 additions and 5639 deletions
@@ -1,7 +0,0 @@
import test.*
fun box(): String {
var result = "fail"
B("O", "K").test { it -> result = it }
return result
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
interface A {
@@ -19,4 +21,14 @@ class B(val o: String, val k: String) {
}
}
}
// FILE: 2.kt
import test.*
fun box(): String {
var result = "fail"
B("O", "K").test { it -> result = it }
return result
}
@@ -1,6 +0,0 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
class A {
@@ -27,4 +29,13 @@ class A {
return if (result == "start1_additional_2_additional_") "OK" else "fail: $result"
}
}
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,6 +0,0 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
class A {
@@ -25,4 +27,13 @@ class A {
return if (result == "start1_additional_2_additional_") "OK" else "fail: $result"
}
}
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,6 +0,0 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
class A {
@@ -21,4 +23,13 @@ class A {
return if (result == "start2_additional_") "OK" else "fail: $result"
}
}
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,6 +0,0 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
class A {
@@ -23,4 +25,13 @@ class A {
return if (result == "start2_additional_") "OK" else "fail: $result"
}
}
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,6 +0,0 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
class A {
@@ -26,4 +28,13 @@ class A {
return if (result == "start1_additional_2_additional_") "OK" else "fail: $result"
}
}
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,6 +0,0 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
class A {
@@ -26,4 +28,13 @@ class A {
}
}
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return A().box()
}
@@ -1,7 +0,0 @@
import test.*
fun box(): String {
var result = "fail"
B("O", "fail").test { it -> result = it }
return result
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
interface A {
@@ -18,4 +20,14 @@ class B(val o: String, val k: String) {
testNested { it -> { f(it + "K") }() }
}
}
}
// FILE: 2.kt
import test.*
fun box(): String {
var result = "fail"
B("O", "fail").test { it -> result = it }
return result
}
@@ -1,8 +0,0 @@
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
var result = "fail"
B("O", "K").test { it -> result = it }
return result
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
interface A {
@@ -19,4 +21,15 @@ class B(val o: String, val k: String) {
}
}
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
var result = "fail"
B("O", "K").test { it -> result = it }
return result
}
@@ -1,7 +0,0 @@
import test.*
fun box(): String {
var result = ""
B("O", "K").test { it -> result += it }
return if (result == "OOKK") "OK" else "fail: $result"
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
interface A {
@@ -19,4 +21,14 @@ class B(val o: String, val k: String) {
testNested ({ it -> f(it + o) }) { it -> f(it + k) }
}
}
}
// FILE: 2.kt
import test.*
fun box(): String {
var result = ""
B("O", "K").test { it -> result += it }
return if (result == "OOKK") "OK" else "fail: $result"
}
@@ -1,7 +0,0 @@
import test.*
fun box(): String {
var result = ""
B("O", "K").test { it -> result += it }
return if (result == "OOKK") "OK" else "fail: $result"
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
interface A {
@@ -28,4 +30,14 @@ class B(val o: String, val k: String) {
}
}
}
// FILE: 2.kt
import test.*
fun box(): String {
var result = ""
B("O", "K").test { it -> result += it }
return if (result == "OOKK") "OK" else "fail: $result"
}
@@ -1,7 +0,0 @@
import test.*
fun box(): String {
var result = ""
B("O", "K").test { it -> result += it }
return if (result == "startOOKK") "OK" else "fail: $result"
}
@@ -1,3 +1,5 @@
// FILE: 1.kt
package test
interface A {
@@ -29,4 +31,14 @@ class B(val o: String, val k: String) {
}
}
}
// FILE: 2.kt
import test.*
fun box(): String {
var result = ""
B("O", "K").test { it -> result += it }
return if (result == "startOOKK") "OK" else "fail: $result"
}