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:
committed by
Alexander Udalov
parent
ecbb2f10ef
commit
41a416da60
+1
-1
@@ -8,4 +8,4 @@ fun box(): String {
|
||||
s[1, -1] = "OK"
|
||||
return s[-2, 2]
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -55,4 +55,4 @@ class StrangeIntArray(size: Int) {
|
||||
fun set(index: Int, v: Int) {
|
||||
defaultValue = v
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,4 +3,4 @@ fun box () : String {
|
||||
s.add("foo")
|
||||
s[0] += "bar"
|
||||
return if(s[0] == "foobar") "OK" else "fail"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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
|
||||
+1
-1
@@ -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"
|
||||
+1
-1
@@ -10,4 +10,4 @@ fun box(): String{
|
||||
val d : C = D()
|
||||
if(d.f() != "D f") return "fail f"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -21,4 +21,4 @@ fun box() : String {
|
||||
if(c.foo() != "aaa") return "fail"
|
||||
if(c.bar() != "bbb") return "fail"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -25,4 +25,4 @@ fun box() : String {
|
||||
return "Fail #4"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -31,4 +31,4 @@ fun box() : String {
|
||||
if (textField.moo(1,2,3) != 6) return "FAIL #2"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -21,4 +21,4 @@ fun box() : String {
|
||||
if (vr(d) != 42) return "Fail #3"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -14,4 +14,4 @@ fun box() : String {
|
||||
if (!test(Derived1())) return "Fail #2"
|
||||
if (!test(Derived2())) return "Fail #3"
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -38,4 +38,4 @@ fun box() : String {
|
||||
if (p4.x + p4.y != 239) return "FAIL #7"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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"
|
||||
+1
-1
@@ -4,4 +4,4 @@ public class SomeClass() : java.lang.Object() {
|
||||
public fun box():String {
|
||||
System.out?.println(SomeClass().getClass())
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -25,4 +25,4 @@ public fun box():String {
|
||||
if(SomeClass.bug is Throwable)
|
||||
throw SomeClass.bug as Throwable
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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
Reference in New Issue
Block a user