Move FullJdk tests to boxWithStdlib

This commit is contained in:
Alexander Udalov
2013-02-07 21:51:43 +04:00
committed by Alexander Udalov
parent d23f82177f
commit f994c9924f
8 changed files with 40 additions and 52 deletions
@@ -0,0 +1,13 @@
import java.lang.Runtime
fun box() : String {
val processors = Runtime.getRuntime()!!.availableProcessors()
var threadNum = 1
while(threadNum <= 1024) {
if(threadNum < 2 * processors)
threadNum += 1
else
threadNum *= 2
}
return "OK"
}