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
@@ -0,0 +1,25 @@
import java.util.HashSet
fun box() : String{
val set = HashSet<String>()
set.add("foo")
val t1 = "foo" in set // returns true, valid
if(!t1) return "fail1"
val t2 = "foo" !in set // returns true, invalid
if(t2) return "fail2"
val t3 = "bar" in set // returns false, valid
if(t3) return "fail3"
val t4 = "bar" !in set // return false, invalid
if(!t4) return "fail4"
val t5 = when("foo") {
in set -> true
else -> false
}
if(!t5) return "fail5"
val t6 = when("foo") {
!in set -> true
else -> false
}
if(t6) return "fail6"
return "OK"
}