Move blackBoxFile() testData to box/ directory

Delete all test methods (and empty test classes), since they'll be
auto-generated
This commit is contained in:
Alexander Udalov
2013-01-25 16:13:45 +04:00
committed by Alexander Udalov
parent ecbb2f10ef
commit 41a416da60
438 changed files with 156 additions and 2005 deletions
@@ -8,4 +8,4 @@ fun box(): String {
s[1, -1] = "OK"
return s[-2, 2]
}
@@ -55,4 +55,4 @@ class StrangeIntArray(size: Int) {
fun set(index: Int, v: Int) {
defaultValue = v
}
}
}
@@ -3,4 +3,4 @@ fun box () : String {
s.add("foo")
s[0] += "bar"
return if(s[0] == "foobar") "OK" else "fail"
}
}
@@ -29,4 +29,4 @@ fun box() : String {
fun thirdElementIsThree(a : IntArray) =
// Problematic code does not compile
// a.size >= 3 & a[2] == 3
a.size >= 3 && a[2] == 3
a.size >= 3 && a[2] == 3
@@ -13,4 +13,4 @@ fun box() : String {
if(a?.get(0)?.get(0) != "239") return "fail"
return "OK"
}
}
@@ -0,0 +1,3 @@
val <T> Array<T>.length : Int get() = this.size
fun box() = if(Array(10, {1}).length == 10) "OK" else "fail"
@@ -10,4 +10,4 @@ fun box(): String{
val d : C = D()
if(d.f() != "D f") return "fail f"
return "OK"
}
}
@@ -21,4 +21,4 @@ fun box() : String {
if(c.foo() != "aaa") return "fail"
if(c.bar() != "bbb") return "fail"
return "OK"
}
}
@@ -25,4 +25,4 @@ fun box() : String {
return "Fail #4"
return "OK"
}
}
@@ -31,4 +31,4 @@ fun box() : String {
if (textField.moo(1,2,3) != 6) return "FAIL #2"
return "OK"
}
}
@@ -21,4 +21,4 @@ fun box() : String {
if (vr(d) != 42) return "Fail #3"
return "OK"
}
}
@@ -14,4 +14,4 @@ fun box() : String {
if (!test(Derived1())) return "Fail #2"
if (!test(Derived2())) return "Fail #3"
return "OK"
}
}
@@ -38,4 +38,4 @@ fun box() : String {
if (p4.x + p4.y != 239) return "FAIL #7"
return "OK"
}
}
@@ -9,4 +9,4 @@ public class StockMarketTableModel() {
}
}
fun box() : String = if(StockMarketTableModel().getColumnCount()==10) "OK" else "fail"
fun box() : String = if(StockMarketTableModel().getColumnCount()==10) "OK" else "fail"
@@ -4,4 +4,4 @@ public class SomeClass() : java.lang.Object() {
public fun box():String {
System.out?.println(SomeClass().getClass())
return "OK"
}
}
@@ -25,4 +25,4 @@ public fun box():String {
if(SomeClass.bug is Throwable)
throw SomeClass.bug as Throwable
return "OK"
}
}
@@ -10,4 +10,4 @@ class MyFactory() : Factory {
override fun create(): Actor = Actor()
}
fun box() : String = MyFactory().create().code
fun box() : String = MyFactory().create().code

Some files were not shown because too many files have changed in this diff Show More